Skip to content

Commit

Permalink
Vertion 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Nov 15, 2017
1 parent a799022 commit 7853273
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
39 changes: 38 additions & 1 deletion CHANGELOG.md
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
2 changes: 1 addition & 1 deletion Supporting/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.1</string>
<string>0.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion Yalta.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Yalta"
s.version = "0.1"
s.version = "0.3"
s.summary = "Auto Layout for Humans"

s.homepage = "https://github.com/kean/Yalta"
Expand Down

0 comments on commit 7853273

Please sign in to comment.