Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.21 KB

README.md

File metadata and controls

57 lines (37 loc) · 1.21 KB

TableForm

Programmatically use of TableView to create data entry forms for iOS

Supported Platforms

  • iOS 11
  • swift 4

Installing

In order to install, you'll need to copy the FormViewController, FormView and FormCells files into your Xcode project.

Usage

create Fields:

        let name = Field(name:"name", title:"Nome:", cellType: NameCell.self)
        let birth = Field(name:"birthday", title:"Nascimento:", cellType: DateCell.self)
        let address = Field(name:"address", title:"Address:", cellType: TextCell.self)

add Fields to Section:

        let sectionPersonal = [name, address, birth]

group all Sections:

        let sections = [sectionPersonal, sectionProfessional, sectionButton]

call ConfigureTable:

let config = ConfigureForm(items: sections)

Set the configuration to TableViewController:

        let main = FormViewController(config: config)

Contact

License

TableForm is licensed under the MIT license.