Pbind v0.9.0
Features:
-
Reset to default value for the removed keys of
pb_constants
andpb_expressions
-
Add mappers:
tag mapto @> form >$ form input value >! form input error #. action state #$ action state data -
Add enum:
tag value :changed PBFormValidatingChanged -
Add class
PBButton
which can automatically change background color on:- disabled state : color with 20% alpha
- highlighted state: color with 80% alpha
-
Add UIView method
pb_canPullData
to tell whether it can pull data -
Add
PBSectionMapper
properties for mappingPBCollectionView
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 -
Add
PBRowMapper
properties:property mapping size cell size for PBCollectionView
deleteAction action for the editing(swipe-to-left) UITableViewCell
delete buttonactions UITableViewRowAction
array for the editing(swipe-to-left)UITableViewCell
-
Extract
PBRowDataSource
andPBRowDelegate
fromPBTableView
andPBCollectionView
to handle the commonPBRowMapping
protocol. -
Add
PBRowAction
which accept types:type for addRow add a row to the top of PBTableView
orPBCollectionView
deleteRow delete the editing(swipe-to-left) row from PBTableView
orPBCollectionView
-
Catch the exception on inconsistent
VFL
inPBLayoutMapper
and give a friendly tips -
Catch the exception on KVC failed and give a helpful suggestion
Bugfixes:
- Fix the auto-layout for the placeholder label in
PBTextView
- Fix the scroll offset after hiding keyboard in
PBForm
- Trigger KVO while call
removeObjectForKey:
fromPBDictionary
- Avoid '#' format crash on
PBInput
- Ensure trigger a value validating after an auto-correction of
PBInput
Performance:
- Optimize the reloading of
PBForm
accessory tool bar - Remove unavailable(KVC failed) key from
pb_constants
andpb_expressions
Other:
- Rename
PBRequest
to_PBRequest
but alias toPBRequest
to avoid the naming conflict with the privateProtoBuffer
framework