SwiftForms Swift 表单开发包

程序名称:SwiftForms

授权协议: BSD

操作系统: iOS

开发语言: Swift

SwiftForms 介绍

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

SwiftForms 官网

https://github.com/ortuman/SwiftForms

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。