Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Releases: 3lvis/Form

Transfer from hyperoslo to 3lvis

Choose a tag to compare

@3lvis 3lvis released this 22 Aug 08:19
04fd458
3.15.0

Update Form.podspec

Form — 3.14.0

Choose a tag to compare

@3lvis 3lvis released this 17 Apr 20:22
533ca2f

Form — 3.13.0

Choose a tag to compare

@3lvis 3lvis released this 11 Feb 07:47
  • 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)

Form — 3.12.1

Choose a tag to compare

@3lvis 3lvis released this 19 Oct 20:06
  • Remove UIButton-ANDYHighlighted dependency (#548)

Form — 3.12.0

Choose a tag to compare

@3lvis 3lvis released this 18 Oct 21:44

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) ⚠️ 🐛

Form — 3.11.0

Choose a tag to compare

@3lvis 3lvis released this 05 Sep 22:15

Form — 3.10.1

Choose a tag to compare

@3lvis 3lvis released this 24 May 21:12

Form — 3.10.0

Choose a tag to compare

@3lvis 3lvis released this 22 Apr 19:15
  • Added support for placeholders, just add the required placeholder to your JSON field.

giphy

Form — 3.9.0

Choose a tag to compare

@3lvis 3lvis released this 11 Jan 23:48
  • Field value popover now features autoresizable cells. You don't need to do anything to get this working. #503

🎉 Thanks to @RyanKim01 for this contribution 🎉

Form — 3.8.0

Choose a tag to compare

@3lvis 3lvis released this 01 Jan 17:41
  • 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