A simple library(only 200 lines of code of Core) make UIKit declaretive like SwiftUI, no custom component, all UIKit original component.
Use EGChainable to call API chainable.
Use RxSwift to make UI component update automatic when data update.
Also work perfectly with Autolayout or it's API wrapper like SnapKit, no limit when apply layout constraint in resulutBuilder.
When something DeclarativeUIKit can't do, you can do it imperative way, like normal UIKit usage, it's ok.
DeclarativeUIKit/Example/DeclarativeUIKit/ViewController.swift
Lines 22 to 144 in 5a4a20a
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 10+
DeclarativeUIKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'EGDeclarativeUIKit'
EkkoG, [email protected]
DeclarativeUIKit is available under the MIT license. See the LICENSE file for more info.