Group Group Group Group Group Group Group Group Group

Swift UI: Declarative UI | raywenderlich.com

#1

This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3779270-swift-ui-declarative-ui
#2

Thank you very much for you screencast. but I’ve question:How can I reproduce or recreate the components that actually there isn’t in SwiftUI like UICollectionViewController?

#3

I understand this was an overview, but you really glossed over so much even in the code you made.

Why is the debug section where you declare the navigation controller? That gets stripped on release build right?

Is there a separate file for the new ‘ui’ code, separate from the viewcontroller?

EVERY example, inc Apple’s, only talks about building the ui, but not hooking it up to the view controller for when additional logic or data manipulation needs to be done! Why wasn’t this addressed?

You whizzed through this massive new paradigm and ended up giving me even more questions than I had previously.

#4

You can connect SwiftUI with UIViewController - look for info about that in a future screencast!

#5

Anne - yes, you’re right! So much stuff to cover, but only a limited screencast to cover it in!

Yes, the preview section at the bottom is stripped out later on- it is just for previewing what your view would look like if it was embedded in a navigation view.

With SwiftUI the concept of a “view controller” as we knew it has changed. A lot of what view controllers took care of - for example handling table delegate methods - is now automatically handled by the SwiftUI framework. You can include other helper methods for you UI components in that file too - we just didn’t here. It’s definitely a paradigm shift from the UIKit way of doing things, and we’re going to need a little more time to get that info out (and honestly, understand it ourselves!). Keep checking back for future screencasts and tutorials for more information!

#6

Thank you very much for you screencast😊

Can you teach SwiftUI with coreData、 realm, and work with cloudKit。