You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PinLayout can now layouts **CALayer**'s. All PinLayout's properties and methods are available, with the following exceptions:
15
+
16
+
*`sizeToFit(:FitType)` is not supported. Support for `sizeToFit(:FitType)` can be added to your custom CALayer subclasses, just make those layers conform to the `SizeCalculable` protocol and implement the two required functions.
17
+
*`CALayer.pin.safeArea` property is not available.
18
+
*`aspectRatio()` with no parameters
19
+
20
+
See [CALayer Support documentation](https://github.com/layoutBox/PinLayout#calayer-support) for more information
21
+
22
+
* Added by [Antoine Lamy](https://github.com/antoinelamy) in Pull Request [#151](https://github.com/layoutBox/PinLayout/pull/151)
### PinLayout has moved to the **layoutBox** organization
23
38
PinLayout is now part of the same organization as other open source projects related to layout using Swift.
24
39
25
40
#### Refactor source code that handle size adjustment.
26
41
* Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#143](https://github.com/layoutBox/PinLayout/pull/143)
27
42
43
+
#### Add an example using `wrapContent()` methods
44
+
* Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#145](https://github.com/layoutBox/PinLayout/pull/145)
45
+
46
+
#### Refactor views frame/bounds access
47
+
* Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#147](https://github.com/layoutBox/PinLayout/pull/147)
Copy file name to clipboardExpand all lines: PinLayout.podspec
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
Pod::Spec.newdo |spec|
10
10
spec.name="PinLayout"
11
-
spec.version="1.7.7"
11
+
spec.version="1.7.8"
12
12
spec.summary="Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. [iOS/macOS/tvOS]"
13
13
spec.description="Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS]"
Extremely Fast views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable.
29
+
Extremely Fast views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. PinLayout can layouts UIView, NSView and CALayer.
30
+
30
31
31
32
> "No Auto layout constraints attached"
32
33
@@ -38,17 +39,11 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
38
39
39
40
### Recent changes/features
40
41
*:star: PinLayout can now layout CALayer. See [CALayer Support](#calayer_support) for more information.
41
-
42
42
*:star: PinLayout has moved to the **[layoutBox](https://github.com/layoutBox)** organization. See other **[layoutBox](https://github.com/layoutBox)** projects.
43
-
44
43
*:star: Add `wrapContent()` methods that adjust view's width and height to wrap all its subviews. See [wrapContent](#wrapContent) for more information.
45
-
46
44
*:star: PinLayout now support macOS. See [macOS Support](#macos_support) for more information.
47
-
48
45
*:star: PinLayout expose the `safeAreaInsets` through [`UIView.pin.safeArea`](#safeAreaInsets), this property support not only iOS 11, but is also backward compatible for earlier iOS releases (7/8/9/10). See [safeAreaInsets support](#safeAreaInsets) for more information.
@@ -1540,37 +1535,27 @@ This app is available in the `Example` folder. Note that you must do a `pod inst
1540
1535
<aname="macos_support"></a>
1541
1536
## macOS Support
1542
1537
1543
-
PinLayout **support of macOS is not complete**, see here the particularities of the current implementation:
1538
+
PinLayout can layout **NSView**'s on macOS. All PinLayout's properties and methods are available, with the following exceptions:
1544
1539
1545
-
* PinLayout supports **only views that have a parent (superview) using a flipped coordinate system**, i.e. views for which the computed property `var isFlipped: Bool` returns true. In a flipped coordinate system, the origin is in the upper-left corner of the view and y-values extend downward. UIKit use this coordinate system. In a non-flipped coordinate system (default mode), the origin is in the lower-left corner of the view and positive y-values extend upward. See [Apple's documentation for more information about `NSView.isFlipped`](https://developer.apple.com/documentation/appkit/nsview/1483532-isflipped). The support of non-flipped coordinate system will be added soon.
1540
+
* PinLayout supports **only views that have a parent (superview) using a flipped coordinate system**, i.e. views for which the computed property `var isFlipped: Bool` returns true. In a flipped coordinate system, the origin is in the upper-left corner of the view and y-values extend downward. UIKit use this coordinate system. In a non-flipped coordinate system (default mode), the origin is in the lower-left corner of the view and positive y-values extend upward. See [Apple's documentation for more information about `NSView.isFlipped`](https://developer.apple.com/documentation/appkit/nsview/1483532-isflipped). The support of non-flipped coordinate system will be added soon.
1546
1541
1547
-
*These methods are currently not supported on macOS, but they will be implemented soon:
1542
+
*[`sizeToFit(:FitType)`](#sizeToFit) is supported only for instances that inherits from NSControl. Support for [`sizeToFit(:FitType)`](#sizeToFit) can be added to your custom NSView subclasses, just make those views conform to the `SizeCalculable` protocol and implement the two required functions.
1548
1543
1549
-
* [`sizeToFit(:FitType)`](#sizeToFit) on any view that is not a subclass of NSControl
1550
-
* [`aspectRatio()`](#aspect_ratio) with no parameters (Coming soon)
1551
-
1552
-
* Support for [`sizeToFit(:FitType)`](#sizeToFit) can be added to your custom NSView subclasses. Just make those views conform to the `SizeCalculable` protocol and implement the two required functions.
1553
-
1554
-
1555
-
*[`UIView.pin.safeArea`](#safeAreaInsets) property is not available, AppKit doesn't have an UIView.safeAreaInsets equivalent.
1544
+
*[`NSView.pin.safeArea`](#safeAreaInsets) property is not available, AppKit doesn't have an `UIView.safeAreaInsets` equivalent.
1556
1545
1557
-
All other PinLayout's methods and properties are available on macOS!
1546
+
*[`aspectRatio()`](#aspect_ratio) with no parameters.
1558
1547
1559
1548
<br>
1560
1549
1561
1550
1562
1551
<aname="calayer_support"></a>
1563
1552
## CALayer Support
1564
1553
1565
-
PinLayout can also layouts **CALayer**'s. All PinLayout's properties and methods are available, with the following exceptions:
1566
-
1567
-
* These methods are currently not supported for CALayers
1568
-
1569
-
* [`sizeToFit(:FitType)`](#sizeToFit) is not supported.
1570
-
* [`aspectRatio()`](#aspect_ratio) with no parameters.
1571
-
* [`CALayer.pin.safeArea`](#safeAreaInsets)
1554
+
PinLayout can layouts **CALayer**'s. All PinLayout's properties and methods are available, with the following exceptions:
1572
1555
1573
-
* Support for [`sizeToFit(:FitType)`](#sizeToFit) can be added to your custom CALayer subclasses. Just make those layers conform to the `SizeCalculable` protocol and implement the two required functions.
1556
+
*[`sizeToFit(:FitType)`](#sizeToFit) is not supported. Support for [`sizeToFit(:FitType)`](#sizeToFit) can be added to your custom CALayer subclasses, just make those layers conform to the `SizeCalculable` protocol and implement the two required functions.
1557
+
*[`CALayer.pin.safeArea`](#safeAreaInsets) property is not available.
1558
+
*[`aspectRatio()`](#aspect_ratio) with no parameters
0 commit comments