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
Copy file name to clipboardExpand all lines: README.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
37
37
* Swift 3.2+ / Swift 4.0 / Objective-C
38
38
39
39
### Recent changes/features
40
+
*:star: PinLayout can now layout CALayer. See [CALayer Support](#calayer_support) for more information.
41
+
40
42
*:star: PinLayout has moved to the **[layoutBox](https://github.com/layoutBox)** organization. See other **[layoutBox](https://github.com/layoutBox)** projects.
41
43
42
44
*:star: Add `wrapContent()` methods that adjust view's width and height to wrap all its subviews. See [wrapContent](#wrapContent) for more information.
@@ -72,6 +74,7 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
72
74
*[More examples](#more_examples)
73
75
*[Examples App](#examples_app)
74
76
*[macOS Support](#macos_support)
77
+
*[CALayer Support](#calayer_support)
75
78
*[PinLayout in Xcode Playgrounds](#playgrounds)
76
79
*[PinLayout using Objective-C](#objective_c_interface)
77
80
*[Installation](#installation)
@@ -1543,8 +1546,10 @@ PinLayout **support of macOS is not complete**, see here the particularities of
1543
1546
1544
1547
* These methods are currently not supported on macOS, but they will be implemented soon:
* [`sizeToFit(:FitType)`](#sizeToFit) on any view that is not a subclass of NSControl
1547
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.
1548
1553
1549
1554
1550
1555
*[`UIView.pin.safeArea`](#safeAreaInsets) property is not available, AppKit doesn't have an UIView.safeAreaInsets equivalent.
@@ -1553,6 +1558,35 @@ All other PinLayout's methods and properties are available on macOS!
1553
1558
1554
1559
<br>
1555
1560
1561
+
1562
+
<aname="calayer_support"></a>
1563
+
## CALayer Support
1564
+
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)
1572
+
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.
0 commit comments