Skip to content

Commit

Permalink
Bumps to 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
s4cha committed Jul 11, 2019
1 parent ed73d33 commit eb08739
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Keyboard+LayoutGuide.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Keyboard+LayoutGuide'
s.version = "1.4.1"
s.version = "1.4.2"
s.summary = "Apple's missing KeyboardLayoutGuide"
s.homepage = "https://github.com/freshOS/KeyboardLayoutGuide"
s.license = { :type => "MIT", :file => "LICENSE" }
Expand Down
Binary file modified KeyboardLayoutGuide.framework.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion KeyboardLayoutGuide/KeyboardLayoutGuide/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.4.1</string>
<string>1.4.2</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ViewController: UIViewController {
super.viewDidLoad()

// Opt out of safe area if needed.
view.keyboardLayoutGuide.usesSafeArea = false
// view.keyboardLayoutGuide.usesSafeArea = false

// Constrain your button to the keyboardLayoutGuide's top Anchor the way you would do natively :)
button.bottomAnchor.constraint(equalTo: view.keyboardLayoutGuide.topAnchor).isActive = true
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ If you add your view in Interface Builder, don't forget to enable the "**Remove

<img src="Images/constraint.png" width=258>

## Safe Area
By default, KeyboardLayoutGuide will align your item with the bottom safe area.
This is a behaviour that can be opt out with the `usesSafeArea` property.
```swift
// Opt out of safe area if needed.
view.keyboardLayoutGuide.usesSafeArea = false
```

## Installation

### CocoaPods
Expand Down

0 comments on commit eb08739

Please sign in to comment.