Re:SwiftUI
by skohan on Monday June 03, 2019 @03:28PM
(#20087290)
I hope it still supports low-level control when you need it.
[ Parent
| on HN ]
Yeah, I have the same concern. This is great for those situations where declarative works but sometimes you really want to get low-level and do some custom stuff with imperative code. I suppose we can use the old frameworks for that?
Re:SwiftUI
by seanalltogether on Monday June 03, 2019 @06:00PM
(#20089351)
Well the docs say you can chain an id() property on any view being built in the tree which would hopefully allow you to reference it at runtime and insert/delete children, but I don't see anything obvious for assigning that id to like an outlet so you don't have to traverse the whole tree to find it.
Looks like it shifts the focus toward developing more intelligent components. They mentioned custom SwiftUI components a few times in the demo.
This is one of the things I am eager to get a deep dive on in later session videos.