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 **support of macOS is not complete at 100%**, see here the particularities of the current implementation:
17
+
18
+
* PinLayout support **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.
19
+
20
+
* These methods are currently not supported on macOS, but they will be implemented soon:
21
+
22
+
* `sizeToFit(:FitType)` (Coming soon)
23
+
* `aspectRatio()` with no parameters (Coming soon)
24
+
25
+
*`UIView.pin.safeArea` property is not available, AppKit doesn't have an UIView.safeAreaInsets equivalent.
26
+
27
+
All other PinLayout's methods and properties are available on macOS!
28
+
29
+
Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#131](https://github.com/mirego/PinLayout/pull/131)
30
+
31
+
32
+
### PinLayout now use MIT license
33
+
The PinLayout license has been changed from **BSD 3-clause "New"** to **MIT License**.
Copy file name to clipboardExpand all lines: PinLayout.podspec
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@
9
9
Pod::Spec.newdo |spec|
10
10
spec.name="PinLayout"
11
11
spec.version="1.7.0"
12
-
spec.summary="Fast Swift UIViews layouting without auto layout. No magic, pure code, full control and blazing fast."
13
-
spec.description="Fast Swift UIViews layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable."
12
+
spec.summary="Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. [iOS/macOS/tvOS]"
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.
19
+
Extremely Fast views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable.
20
20
21
21
> "No Auto layout constraints attached"
22
22
@@ -27,7 +27,7 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
27
27
* Swift 3.2+ / Swift 4.0 / Objective-C
28
28
29
29
### Recent features
30
-
*:star: PinLayout now support macOS 10.9+. See [macOS Support](#macos_support) for more information.
30
+
*:star: PinLayout now support macOS. See [macOS Support](#macos_support) for more information.
31
31
32
32
*: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.
33
33
@@ -273,9 +273,9 @@ Another shorter possible solution using `all()`:
273
273
274
274
### PinLayout UIView’s edges
275
275
276
-
PinLayout adds edges properties to UIViews. These properties are used to reference other view’s edges.
276
+
PinLayout adds edges properties to UIView/NSView. These properties are used to reference other view’s edges.
277
277
278
-
**PinLayout UIView’s edges**:
278
+
**PinLayout View’s edges**:
279
279
280
280
*`UIView.edge.top`
281
281
*`UIView.edge.vCenter`
@@ -291,7 +291,7 @@ PinLayout adds edges properties to UIViews. These properties are used to referen
291
291
292
292
### Layout using edges
293
293
294
-
PinLayout has methods to attach a UIView's edge (top, left, bottom, right, start or end edge) to another view’s edge.
294
+
PinLayout has methods to attach a View's edge (top, left, bottom, right, start or end edge) to another view’s edge.
295
295
296
296
**Methods:**
297
297
@@ -352,11 +352,11 @@ This example center horizontally the view B inside the view A with a top margin
352
352
<aname="anchors"></a>
353
353
## Anchors
354
354
355
-
### PinLayout UIView’s anchors
355
+
### PinLayout View’s anchors
356
356
357
-
PinLayout adds anchors properties to UIViews. These properties are used to reference other view’s anchors.
357
+
PinLayout adds anchors properties to UIView/NSView. These properties are used to reference other view’s anchors.
@@ -620,9 +620,9 @@ This is an equivalent solutions using other methods:
620
620
<br/>
621
621
622
622
623
-
### Positioning using only visible relative UIViews
623
+
### Positioning using only visible relative Views
624
624
625
-
All PinLayout's relative methods can accept an array of UIViews (ex: `below(of: [UIView])`). Using these methods its possible to filter the list of relative UIViews before the list is used by PinLayout.
625
+
All PinLayout's relative methods can accept an array of Views (ex: `below(of: [UIView])`). Using these methods its possible to filter the list of relative Views before the list is used by PinLayout.
626
626
627
627
PinLayout has a filter method called `visible` that can be used to layout a view related to only visible views. This can be really useful when some views may be visible or hidden depending on the situation.
0 commit comments