DeclaratvieUI is a good pattern for crafting complex UI components while keeping the states simple. SwiftUI is one of the best frameworks of Declarative UI pattern. However, due to the ABI stability, we cannot use SwiftUI, or even those syntax supporting declarative programming, on devices below iOS 13.
In this slide, I briefly introduce the main idea of the declarative pattern, and demonstrate how to implement the pattern based on older SDKs.
(投影片內容為中文 Chinese Content)