RadiantForms
RadiantForms is an iOS framework for creating forms.
Because form code is hard to write, hard to read, hard to reason about. Has a slow turn around time. Is painful to maintain.
Requirements
- iOS 10.0+
- Xcode 10.2.1+
- Swift 5.0+
Features
- Several form items, such as textfield, buttons, sliders
- Some form items can expand/collapse, such as datepicker, pickerview
- You can create your own custom form items
- Align textfields across multiple rows
- Form validation rule engine
- Shows with red text where there are problems with validation
- Strongly Typed
- Pure Swift
- No 3rd party dependencies
USAGE
Tutorial 0 - Static text
import RadiantForms
class Tutorial0_StaticText_ViewController: RFFormViewController {
override func populate(_ builder: RFFormBuilder) {
builder += RFStaticTextFormItem().title("Hello").value("World")
}
}
Tutorial 1 - TextField
import RadiantForms
class Tutorial1_TextField_ViewController: RFFormViewController {
override func populate(_ builder: RFFormBuilder) {
builder += RFTextFieldFormItem().title("Email").placeholder("Please specify").keyboardType(.emailAddress)
}
}
Tutorial 2 - Open child view controller
import RadiantForms
class Tutorial2_ChildViewController_ViewController: RFFormViewController {
override func populate(_ builder: RFFormBuilder) {
builder += RFViewControllerFormItem().title("Go to view controller").viewController(FirstViewController.self)
}
}
INSTALLATION
CocoaPods
CocoaPods is a dependency manager for Cocoa projects.
You can install it with the following command:
$ gem install cocoapods
To integrate RadiantForms
into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
pod 'RadiantForms'
Then, run the following command:
$ pod install
Development
Development happens in the develop
branch.
- If you want to contribute, submit a pull request.
- If you found a bug, have suggestions or need help, please, open an issue.
- If you need help, feel free to write me: [email protected]