Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
wordlessj committed Oct 5, 2018
1 parent 36eeaec commit a9fdc77
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: objective-c
osx_image: xcode9
osx_image: xcode10
env:
- SCHEME="Bamboo iOS" DESTINATION="platform=iOS Simulator,name=iPhone 7"
- SCHEME="Bamboo iOS" DESTINATION="platform=iOS Simulator,name=iPhone XS"
- SCHEME="Bamboo macOS" DESTINATION="platform=macOS"
- SCHEME="Bamboo tvOS" DESTINATION="platform=tvOS Simulator,name=Apple TV 1080p"
- SCHEME="Bamboo tvOS" DESTINATION="platform=tvOS Simulator,name=Apple TV 4K"
script:
- set -o pipefail
- xcodebuild -scheme "$SCHEME" -destination "$DESTINATION" test | xcpretty
3 changes: 2 additions & 1 deletion Bamboo.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
Pod::Spec.new do |s|
s.name = 'Bamboo'
s.version = '1.1.0'
s.version = '1.2.0'
s.summary = 'Auto Layout (and manual layout) in one line.'
s.homepage = 'https://github.com/wordlessj/Bamboo'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = 'Javier Zhang'
s.source = { :git => 'https://github.com/wordlessj/Bamboo.git', :tag => s.version.to_s }
s.swift_version = '4.2'

s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.11'
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](#carthage)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Bamboo.svg)](#cocoapods)
![Swift 4](https://img.shields.io/badge/Swift-4-orange.svg)
![Swift 4.2](https://img.shields.io/badge/Swift-4.2-orange.svg)
![Platform](https://img.shields.io/badge/platform-iOS%209.0%2B%20%7C%20macOS%2010.11%2B%20%7C%20tvOS%209.0%2B-lightgrey.svg)
[![Build Status](https://travis-ci.org/wordlessj/Bamboo.svg?branch=master)](https://travis-ci.org/wordlessj/Bamboo)

Expand Down Expand Up @@ -288,6 +288,18 @@ All `distribute` methods come with an optional `inset` parameter, you can specif
[view1, view2, view3].bb.distributeXEqualSpacing(inset: .equal)
```

### Group

If you want to activate/deactivate a set of constraints in response to some events, you can use `group()` to collect constraints into an array.

```swift
let constraints: [NSLayoutConstraint] = group {
view1.bb.fill()
view2.bb.left().top().size(100)
view3.bb.fillBottom().height(100)
}
```

## Manual Layout

Why manual layout when there is Auto Layout? Well, Auto Layout is good, but it has some performance issues, that’s when you may want to switch to manual layout.
Expand Down
2 changes: 1 addition & 1 deletion Source/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>1.1.0</string>
<string>1.2.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit a9fdc77

Please sign in to comment.