Skip to content

Commit 5b243ba

Browse files
committed
Updates usage in example project
1 parent f1ff5da commit 5b243ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

KeyboardLayoutGuideExample/KeyboardLayoutGuideExample/ViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ class ViewController: UIViewController {
1616
override func viewDidLoad() {
1717
super.viewDidLoad()
1818

19-
// Opt out of safe area if needed.
20-
// view.keyboardLayoutGuide.usesSafeArea = false
21-
2219
// Constrain your button to the keyboardLayoutGuide's top Anchor the way you would do natively :)
2320
button.bottomAnchor.constraint(equalTo: view.keyboardLayoutGuide.topAnchor).isActive = true
21+
22+
// Opt out of safe area if needed.
23+
// button.bottomAnchor.constraint(equalTo: view.keyboardLayoutGuideNoSafeArea.topAnchor).isActive = true
2424
}
2525
}

0 commit comments

Comments
 (0)