Releases: Pimine/EasySwiftLayout
Releases · Pimine/EasySwiftLayout
📒 EasySwiftLayout 1.6.3
Fixed:
- Ambiguous use of
size(match:withInset:usingRelation:priority:)#20.
📒 EasySwiftLayout 1.6.2
Fixed:
- Enum cases with associated values cannot be marked potentially unavailable with available. Swift Bug.
1.6.1
Prepare release 1.6.1.
Improvements and support for SPM
Added:
- Support for Swift Package Manager.
- Tests for size and center extensions.
assertionFailurewhen expected superview but found nil when attempting to make constraint.
Updated:
- Enum
ESLAxiscasesx,ydeprecated and replaced withhorizontalandvertical.
Removed:
ESLOffset. Replaced withUIOffsetfromUIKit.
Example project
Added:
- Example project.
- Small helper method
add(toSuperview:)for convenient chaining.
Updated:
- API documentation.
- Internal project structure.
Bug fixes and improvements
Added:
-
Ability to chain
pin,centermethods. For now, all methods returnsselfwith attribute@discardableResult. This will help to remove some boilerplate code in our daily UI routine. -
ESLSizeInsets(typealias ofUIOffset) instead ofESL2DimentionsInsets(typealias ofCGSize). It was just a bad naming, plusUIOffsetcreates better API rather thanCGSize. -
Swift 5 support.
Updated:
-
API documentation.
-
Size methods which uses another view for layout. Replaced argument labels
totomatch. -
centerInSuperview. Now it requires argument labelaxis.
Fixed:
-
Center methods ignored constraints priority.
-
heightignored constraint relation.
Support to set size using another view
Added:
- Support to set size of the view using another
UIView.
Updated:
- API documentation.
Deprecated:
- Size methods with layout relation as a first argument. Relation moved to base size methods as a second argument with default value
NSLayoutRelation.equal.
API Documentation
Updated:
- API Documentation.
1.3.2
1.3.2
1.3.1
Update podspec