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.
assertionFailure
when expected superview but found nil when attempting to make constraint.
Updated:
- Enum
ESLAxis
casesx
,y
deprecated and replaced withhorizontal
andvertical
.
Removed:
ESLOffset
. Replaced withUIOffset
fromUIKit
.
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
,center
methods. For now, all methods returnsself
with 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, plusUIOffset
creates better API rather thanCGSize
. -
Swift 5 support.
Updated:
-
API documentation.
-
Size methods which uses another view for layout. Replaced argument labels
to
tomatch
. -
centerInSuperview
. Now it requires argument labelaxis
.
Fixed:
-
Center methods ignored constraints priority.
-
height
ignored 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