Swift 表单开发包:SwiftForms
jopen
10年前
SwiftForms 是一个强大且灵活的 Swift 开发库,可轻松通过几行代码创建复杂表单,同时可方便的定制单元格显示样式。
示例代码:
// Create form instace let form = FormDescriptor() form.title = "Example form" // Define first section let section1 = FormSectionDescriptor() var row: FormRowDescriptor! = FormRowDescriptor(tag: "name", rowType: .Email, title: "Email") section1.addRow(row) row = FormRowDescriptor(tag: "pass", rowType: .Password, title: "Password") section1.addRow(row) // Define second section let section2 = FormSectionDescriptor() row = FormRowDescriptor(tag: "button", rowType: .Button, title: "Submit") section2.addRow(row) form.sections = [section1, section2] self.form = form