-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,42 @@ | ||
[Changelog](https://github.com/kean/Yale/releases) for all versions | ||
|
||
|
||
## Yalta 0.3 | ||
|
||
- With new `addSubview(_:constraints:)` method you define a view hierarchy and layout views at the same time. It encourages splitting layout code into logical blocks and prevents programmer errors (e.g. trying to add constraints to views not in view hierarchy). | ||
|
||
- Remove standalone `fillSuperview(..)` and `centerInSuperview()` family of functions. There were multiple cons of having them (e.g. more terminology to learn, hard to document and explain, inconsistent with `center` and `size` manipulations, were not allowing to pin in a corner). | ||
|
||
Now you can manipulate multiple edges at the same time instead: | ||
|
||
```swift | ||
view.addSubview(stack) { | ||
$0.edges.pinToSuperview() // pins the edges to fill the superview | ||
$0.edges.pinToSuperview(insets: Insets(10)) // with insets | ||
$0.edges.pinToSuperviewMargins() // or margins | ||
|
||
$0.edges(.left, .right).pinToSuperview() // fill along horizontal axis | ||
$0.centerY.alignWithSuperview() // center along vertical axis | ||
} | ||
``` | ||
|
||
This is a much simpler model which removes entire layer of standalone methods available on `LayoutItems`. Now you always select either an `anchor` or `collections of anchors`, then use their methods to add constraints. Much simpler. | ||
|
||
- Make LayoutProxy's `base` public to enable adding custom extensions on top of it. | ||
|
||
|
||
# Yalta 0.2 | ||
|
||
- Redesigned Yalta API which now follow [Swift API Design Guidelines](https://swift.org/documentation/api-design-guidelines/). Although most of the APIs are compact, it is a *non-goal* to enable the most concise syntax possible. Instead Yalta provides a fluent APIs that form grammatical phrases. | ||
- Full test coverage | ||
- Add a new comprehensive overview, [full guide](https://github.com/kean/Yalta/blob/master/Docs/YaltaGuide.md), and [installation guide](https://github.com/kean/Yalta/blob/master/Docs/InstallationGuide.md) | ||
|
||
|
||
## Yalta 0.1.1 | ||
|
||
- Revert to original `Spacer` design | ||
|
||
|
||
## Yalta 0.1 | ||
|
||
- Initial version | ||
- Initial version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters