FaceAware icon indicating copy to clipboard operation
FaceAware copied to clipboard

SwiftUI Image focus on faces

Open otymartin opened this issue 3 years ago • 5 comments

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

otymartin avatar Sep 22 '20 01:09 otymartin

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 avatar Sep 22 '20 01:09 BeauNouvelle

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

BeauNouvelle avatar Sep 22 '20 01:09 BeauNouvelle

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.

otymartin avatar Oct 01 '20 00:10 otymartin

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

BeauNouvelle avatar Oct 01 '20 01:10 BeauNouvelle

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

otymartin avatar Oct 01 '20 22:10 otymartin