Skip to content

avreolko/VCForm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VCForm

An easy declarative way to build your scrollable vertical forms

Features

✅ Declarative filling

form.add(Builder<UILabel> { $0.text = "Omae wa mou shindeiru" })
	.add(YourViewBuilder()) // inherited from IViewBuilder
	.add(Builder<UIButton>, to: .bottom) // button 'snapped' to the bottom
	.build()

✅ Automatic scroll height calculation that supports changes at runtime

✅ Reorderable forms

form.configuration = VCFormConfiguration(reorderable: true)

✅ Separate header and footer sections

Demo

Here's an example from my pet project

form_demo

Installation

Install with SPM 📦

Usage

You can start building forms straight away with the included builders: Builder<T: UIView>, XibBuilder<T: UIView>. The first builder initializes the view with .init(frame: .zero), the second one loads the view from the .xib file. You also can create your own builders with the IViewBuilder protocol.

License

This project is released under the MIT license.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages