Skip to content

Commit 3bd37b3

Browse files
author
Luc Dion
committed
Update Readme and update version to 1.7.8
1 parent 191a818 commit 3bd37b3

File tree

3 files changed

+36
-28
lines changed

3 files changed

+36
-28
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77

88
# Change Log
99

10+
## [1.7.8](https://github.com/layoutBox/PinLayout/releases/tag/1.7.6)
11+
Released on 2018-06-26
12+
13+
#### Add support for CALayer layout
14+
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)
23+
24+
1025
## [1.7.7](https://github.com/layoutBox/PinLayout/releases/tag/1.7.6)
1126
Released on 2018-06-19
1227

@@ -17,14 +32,22 @@ Refactoring to avoid having to deal directly with view types, making it easier t
1732

1833

1934
## [1.7.6](https://github.com/layoutBox/PinLayout/releases/tag/1.7.6)
20-
Released on 2018-06-07
35+
Released on 2018-06-12
2136

2237
### PinLayout has moved to the **layoutBox** organization
2338
PinLayout is now part of the same organization as other open source projects related to layout using Swift.
2439

2540
#### Refactor source code that handle size adjustment.
2641
* Added by [Luc Dion](https://github.com/lucdion) in Pull Request [#143](https://github.com/layoutBox/PinLayout/pull/143)
2742

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)
48+
49+
50+
2851
## [1.7.5](https://github.com/layoutBox/PinLayout/releases/tag/1.7.5)
2952
Released on 2018-06-05
3053

PinLayout.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |spec|
1010
spec.name = "PinLayout"
11-
spec.version = "1.7.7"
11+
spec.version = "1.7.8"
1212
spec.summary = "Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. [iOS/macOS/tvOS]"
1313
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]"
1414
spec.homepage = "https://github.com/layoutBox/PinLayout"

README.md

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
<!--<a href="https://github.com/layoutBox/PinLayout/issues"><img src="https://img.shields.io/github/issues/layoutBox/PinLayout.svg?style=flat" /></a>-->
2727

2828

29-
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+
3031

3132
> "No Auto layout constraints attached"
3233
@@ -38,17 +39,11 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
3839

3940
### Recent changes/features
4041
* :star: PinLayout can now layout CALayer. See [CALayer Support](#calayer_support) for more information.
41-
4242
* :star: PinLayout has moved to the **[layoutBox](https://github.com/layoutBox)** organization. See other **[layoutBox](https://github.com/layoutBox)** projects.
43-
4443
* :star: Add `wrapContent()` methods that adjust view's width and height to wrap all its subviews. See [wrapContent](#wrapContent) for more information.
45-
4644
* :star: PinLayout now support macOS. See [macOS Support](#macos_support) for more information.
47-
4845
* :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.
4946

50-
* :star: Methods [`all(:CGFloat)`, `horizontally(:CGFloat)` / `horizontally(:Percent)`, `vertically(:CGFloat)` / `vertically(:Percent)`](#pin_multiple_edges)
51-
5247

5348

5449
### Content
@@ -1540,37 +1535,27 @@ This app is available in the `Example` folder. Note that you must do a `pod inst
15401535
<a name="macos_support"></a>
15411536
## macOS Support
15421537

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:
15441539

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.
15461541

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.
15481543

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.
15561545

1557-
All other PinLayout's methods and properties are available on macOS!
1546+
* [`aspectRatio()`](#aspect_ratio) with no parameters.
15581547

15591548
<br>
15601549

15611550

15621551
<a name="calayer_support"></a>
15631552
## CALayer Support
15641553

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:
15721555

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
15741559

15751560
###### Usage Examples:
15761561

0 commit comments

Comments
 (0)