Hi everyone, can anyone explain me the difference between SwiftUI and UIKit?
Thank you.
There are a lot of differences. SwiftUI and UIKit are not at the same level.
UIKIT "simply" provides API to access all the func to manage UI. Developer is in charge of the UI logic: when something changes here, update UI there. You can use notification to do it, but it is your responsibility. You design the interface either graphically in storyboard (WYSIWYG) and connect to code through IBOutlets. So you manage the state of each view and write code to redraw according to this state.
SwiftUI relies on UIKit in fact. It asks you to build the interface in code and not graphically. But it provides the layer to manage all this UI updating logic: a view is automatically updated when its state changes.
Hopes that's clear enough.