- Xcode9 preparations. Now compiles with Xcode9beta6.
- Swiftlint
- Upgraded from Xcode8.2.1 to Xcode8.3.1
- Classes derived from FormViewController can now be used inside storyboards. Added 'SettingsViewController' that demonstrates this. FormViewController.init(coder aDecoder: NSCoder) have until now invoked super.init(nibName: nil, bundle: nil) so it has never worked inside a storyboard. FormViewController now instead implements init?(coder aDecoder: NSCoder) so it can invoke super.init(coder: aDecoder).
- FormViewController.reloadForm() added.
- iPad: cells now adheres to
cellLayoutMarginsFollowReadableWidth = true
and uses the layoutMargin left/right for computing the frames. - DatePickerFormItem.minuteInterval added.
- Simplified specification pattern. In the future the
CompositeSpecification
class will be removed. Instead of subclassingCompositeSpecification
one must instead subclassSpecification
. - Simplified the
CharacterSetSpecification
factory functions. In the future theCharacterSetSpecification
the oldschool factory functions will be removed. - Fixed crash in the
Sign Up
example code. Tapping the "Export to JSON" button always crashed. The problem was introduced in theDumpVisitor
class when the project got migrated from Xcode7 to Xcode8. - Wrote documentation for the files in
Source/Util
andSource/Specification
. - Upgraded from Xcode 8.0 to Xcode 8.1
- Fixed crash: When using a custom view for the section header and providing a height less than 10 pixels could cause expand/collapse to crash.
- Longer section header titles affects expand/collapse animations. Here it's better to use a custom view as section header.
- Imported specification pattern unittests
- Enabled Travis CI.
- Fixed podfile
- Major breaking changes, thus I'm incrementing version number from 0.x.x to 1.x.x
- Breaking: Upgraded from Swift 2.3 to Swift 3
- Breaking: Upgraded from Xcode 7.3.1 to Xcode 8.0
- Breaking:
CellHeightProvider.form_cellHeight()
now requires the name of the first parameter - Breaking:
CellForRowDelegate.form_cellForRow()
now requires the name of the first parameter - Breaking:
SelectOptionDelegate.form_willSelectOption()
now requires the name of the first parameter - Breaking:
SelectRowDelegate.form_didSelectRow()
now requires the name of the first parameter - Breaking:
WillDisplayCellDelegate.form_willDisplay()
now requires the name of the first parameter - Breaking: Leaf classes can no longer be subclassed, such as
AttributedTextFormItem
,ButtonFormItem
,CustomFormItem
,DatePickerFormItem
, etc. These were subclassable. TheFormItem
can still be subclassed, since it's the base class for all form items. - Breaking: Enabled "Self Sizing Cells" in
FormTableView
- Added
FormBuilder.suppressHeaderForFirstSection
that hides the first header in the tableview
- Added
PickerViewFormItem
that makes it possible to use inlineUIPickerView
. - Added
PickerViewViewController
that shows how to use thePickerViewFormItem
. - Sorted visitor functions alphabetically.
- Added more examples to the
readme
- Date pickers are now inline. Previous the date pickers was iOS6 style and shown at the bottom of the screen. It felt old. (#8)
- The
PrecisionSlider
now implementsUIResponder
. If you setcollapseWhenResigning=true
then the slider will collapse when another control becomes first responder. - Bumped up the minimum version of iOS to
9.0
. - Added
DatePickerBindingViewController
example. - Added
SlidersAndTextFieldsViewController
example.
- The
PrecisionSlider
can now sync its zoom level. This could make it possible to store the zoom level inNSUserDefaults
. - After expand/collapse the cell could end up out side the visible area. Now it's scrolled into the visible area.
- The
PrecisionSlider
can now be zoomed in/out, by pinching with 2 fingers. - The
PrecisionSlider
can now be x10 zoomed in by double tapping with 1 finger. - The
PrecisionSlider
can now be x10 zoomed out by double tapping with 2 fingers. - Support for Carthage.
- Added
PrecisionSliderFormItem
andPrecisionSliderCell
.
- Added
AttributedTextFormItem
andAttributedTextCell
.
- Added
SegmentedControlFormItem
andSegmentedControlCell
, - Added
SegmentedControlsViewController
example.
- Support for CocoaPods.
FormTableView
now withestimatedRowHeight
TableViewSection
now withUITableViewAutomaticDimension
- Upgrade to Xcode7.3.1 (7D1014)
StaticTextFormItem
can now sync itsvalue
with the cell.- Upgrade to Xcode7.3 (7D175)