Skip to content
This repository has been archived by the owner on Oct 9, 2021. It is now read-only.

SwiftUI Image focus on faces #37

Open
otymartin opened this issue Sep 22, 2020 · 5 comments
Open

SwiftUI Image focus on faces #37

otymartin opened this issue Sep 22, 2020 · 5 comments

Comments

@otymartin
Copy link

@BeauNouvelle How can we use this magic in SwiftUI's Image view?

@BeauNouvelle
Copy link
Owner

Since this is just an extension, you should be able to wrap a regular UIImageView in UIViewRepresentable and call the appropriate methods in there.

I haven't tested it though.

I'm looking at writing a replacement for this library that works with SwiftUI!
When time permits!

@BeauNouvelle
Copy link
Owner

If the above suggestion doesn't work, please let me know and I'll look into improving it.

@otymartin
Copy link
Author

Thanks, @otymartin Will let you know once I implement it - generally, I'm just eliminating UIKit in favour of native SwiftUI so I wanted to avoid it.

@BeauNouvelle
Copy link
Owner

Yeah, I would love to redo all this. I'm no longer building new projects using UIKit.

@otymartin
Copy link
Author

@BeauNouvelle Good to hear - looking forward to whatever magic you produce :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants