Rather than calling out to a wrapped UISlider with additional arguments to style the track and knob, I said fuck it and built the slider from scratch. It was quick! It's not like UIKit where a whole control takes you a couple hours of drawing code and gesture recognizers
-
Show this thread
-
-
Replying to @peidran
Fairly aggressively, but that was true at launch https://developer.apple.com/tutorials/SwiftUI … https://developer.apple.com/documentation/swiftui … https://developer.apple.com/videos/frameworks/ui-frameworks?q=swiftui …
1 reply 0 retweets 0 likes -
Replying to @_danilo
Components and specific happy paths are documented. If you want to understand the framework—how layout actually happens, say—you get stub docs at best. Where is the conceptual model for how views compose?
1 reply 0 retweets 0 likes -
Replying to @peidran
Maybe at the next WWDC? Meanwhile this is pretty solid:https://www.objc.io/books/thinking-in-swiftui/ …
1 reply 0 retweets 0 likes -
Replying to @_danilo
I was just thinking, "I bet it's available in $40 book form". But earnestly, it does look promising, thanks.
1 reply 0 retweets 0 likes -
My assumption is still that there isn't really a conceptual model; that components do what they want when they want. You have to know how two components are implemented to know how they'll interact. Better than cramming many responsibilities into UIKit classes, but not great.
1 reply 0 retweets 0 likes -
Replying to @peidran
I dunno man, I shipped a whole app using SwiftUI and none of this was an impediment. The speed of development is worth the black boxiness of the implementation. At least, it was for me
1 reply 0 retweets 0 likes -
Replying to @_danilo
Fair enough, and I do believe it's firmer footing than UIKit ever had. I see the frustration, superstition, and cottage industry of bad ideas cropping up on StackOverflow and don't think I'm the only one who will find other things to work on.
1 reply 0 retweets 0 likes -
Replying to @peidran
It’s VERY 1.0, and I don’t blame you for not having the appetite there. I actually skipped the first three versions of Swift for that reason. Wanted it more cooked. But if you enjoy UI at all, it is so much fucking fun to work with I can’t even express it, warts and all.
1 reply 0 retweets 1 like
Yes! Front end is super rewarding like that. And sorry for yucking your yum :)
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.