Re:Ask HN: Book Recommendation for macOS Development
by Turing_Machine on Monday March 21, 2022 @12:28PM
(#30756054)
I like SwiftUI a lot, but IMO it's not really ready for primetime yet, while trying to do something partly in SwiftUI and partly in UIKit is ugly, ugly, ugly (again, IMO).
[ Parent
| on HN ]
Re:Ask HN: Book Recommendation for macOS Development
by bartvk on Monday March 21, 2022 @01:34PM
(#30757177)
Why do you think it’s ugly? What makes it so?
I’ve bridged several UIKit components into SwiftUI and it’s been fine. You have to be careful with Auto Layout, my approach was to divide into separate UIView and then wrap those in UIViewRepresentable, thus leaving the layout to SwiftUI. But that was the main thing to keep in mind.