FormsDemo is all features demo.
import FormsDemo
Forms.framework
FormsAnalytics.framework
FormsDeveloperTools.framework
FormsImagePicker.framework
FormsMock.framework
FormsNetworking.framework
FormsPermissions.framework
FormsSideMenu.framework
FormsSocialKit.framework
FormsTransition.framework
let window: UIWindow = UIWindow(frame: UIScreen.main.bounds)
window.rootViewController = DemoRootViewController()
window.makeKeyAndVisible()
Create own Demo structure
protocol DemoRowType {
var rawValue: String { get }
}
protocol DemoRow {
var type: DemoRowType { get }
var title: String { get }
var subtitle: String? { get }
var sections: [DemoSection] { get }
var shouldPresent: Bool { get }
}
protocol DemoSection {
var title: String? { get }
var rows: [DemoRow] { get }
}
Initialization
let sections: [DemoSection] = /* custom sections */
DemoRootViewController(sections, getRowController)
func getRowController(row: DemoRow) -> UIViewController? {
// switch your row.type
}
There is CleanSwift.xctemplate in ./FormsExample/Resources/Templates folder. You can copy it to
~/Library/Developer/Xcode/Templates/Custom