3lvis Form Versions Save

The most flexible and powerful way to build a form on iOS

3.15.0

5 years ago

3.13.0

7 years ago
  • Remove Hex dependency Now is included in Form, so you might need to remove the import Hex and things would just work.
  • Highlight disabled text field if it is not valid (#550)
  • Fix iPad popovers (#551)
  • Add support for Toggle (UISwitch) fields (#555)
  • Remove abort() call to prevent crash on select clear (#553)
  • Copy layout attributes before mutating (#562)
  • Disable collectionView bounces to prevent NSRangeException (#560)

3.12.1

7 years ago
  • Remove UIButton-ANDYHighlighted dependency (#548)

3.12.0

7 years ago

This release wouldn't be possible without the help of the fantastic @jeffleeismyhero.

Segmented Control / Switch Field https://github.com/hyperoslo/Form/pull/544

screen shot 2016-10-10 at 3 56 35 pm

This adds the functionality requested in the Feature Request Issue #536. It might also work for the functionality requested in issues #474 and #476.

Field type: segment Values: This field takes values in the same format as select fields.

Example JSON

[
  {
    "id": "group",
    "title": "Group",
    "sections": [
      {
        "id": "section",
        "fields": [
          {
            "id": "segment",
            "title": "Location",
            "type": "segment",
            "values":[
              {
                "id":"in_house",
                "title":"In-house",
                "default":true
              },
              {
                "id":"remote",
                "title":"Remote"
              }
            ],
            "size": {
              "width": 40,
              "height": 1
            }
          }
        ]
      }
    ]
  }
]

Support for Accessibility Labels https://github.com/hyperoslo/Form/pull/542

Accessibility labels are used by VoiceOver on iOS to provide feedback to users with visual impairments. According to Apple, the accessibility label attribute is "a short, localized word or phrase that succinctly describes the control or view, but does not identify the element's type. Examples are 'Add' or 'Play.'"

Field values are automatically mapped to Accessibility Value attributes to provide accurate feedback to users.

In addition to providing assistive feedback to users with impairments, accessibility labels can be useful for UI testing. Libraries such as KIF, EarlGrey, and Calabash can use accessibility labels to access and control fields.

Attribute Name: accessibility_label Applies To: Text type fields

Usage

{
  "id":"first_name",
  "title":"First name",
  "accessibility_label":"First Name Accessibility Label",
  "type":"text",
  "size":{
    "width":30,
    "height":1
  }
}

The field's title attribute will be used for the accessibility label in the event one is not provided.

Fixes a crash [FORMLayout fieldsAtSection:] (FORMLayout.m:222) ⚠️ ?

3.11.0

7 years ago

3.10.1

7 years ago

3.10.0

8 years ago
  • Added support for placeholders, just add the required placeholder to your JSON field.

giphy

3.9.0

8 years ago
  • Field value popover now features autoresizable cells. You don't need to do anything to get this working. #503

:tada: Thanks to @RyanKim01 for this contribution :tada:

3.8.0

8 years ago
  • Exposed a few methods for handling collapsible groups on FORMDataSource. #485
 // Collapse group with group id
 // @param group A group id
- (void)collapseGroup:(NSInteger)group;

 // @discussion Check if group is collapsed
 // @param group A group id
- (BOOL)groupIsCollapsed:(NSInteger)group;
  • Improve setting selected text range #488
  • Made separators hidden by default, super helpful when working with custom fields. #496