Skip to content

Pbind v0.9.0

Compare
Choose a tag to compare
@galenlin galenlin released this 28 Dec 11:57
· 559 commits to master since this release

Features:

  1. Reset to default value for the removed keys of pb_constants and pb_expressions

  2. Add mappers:

    tag mapto
    @> form
    >$ form input value
    >! form input error
    #. action state
    #$ action state data
  3. Add enum:

    tag value
    :changed PBFormValidatingChanged
  4. Add class PBButton which can automatically change background color on:

    • disabled state : color with 20% alpha
    • highlighted state: color with 80% alpha
  5. Add UIView method pb_canPullData to tell whether it can pull data

  6. Add PBSectionMapper properties for mapping PBCollectionView section:

    property for
    item section cell
    items section cells
    inset inset for section
    inner minimum inter item spacing(width) and line spacing(height) for section
  7. Add PBRowMapper properties:

    property mapping
    size cell size for PBCollectionView
    deleteAction action for the editing(swipe-to-left) UITableViewCell delete button
    actions UITableViewRowAction array for the editing(swipe-to-left) UITableViewCell
  8. Extract PBRowDataSource and PBRowDelegate from PBTableView and PBCollectionView to handle the common PBRowMapping protocol.

  9. Add PBRowAction which accept types:

    type for
    addRow add a row to the top of PBTableView or PBCollectionView
    deleteRow delete the editing(swipe-to-left) row from PBTableView or PBCollectionView
  10. Catch the exception on inconsistent VFL in PBLayoutMapper and give a friendly tips

  11. Catch the exception on KVC failed and give a helpful suggestion

Bugfixes:

  1. Fix the auto-layout for the placeholder label in PBTextView
  2. Fix the scroll offset after hiding keyboard in PBForm
  3. Trigger KVO while call removeObjectForKey: from PBDictionary
  4. Avoid '#' format crash on PBInput
  5. Ensure trigger a value validating after an auto-correction of PBInput

Performance:

  1. Optimize the reloading of PBForm accessory tool bar
  2. Remove unavailable(KVC failed) key from pb_constants and pb_expressions

Other:

  1. Rename PBRequest to _PBRequest but alias to PBRequest to avoid the naming conflict with the private ProtoBuffer framework