Skip to content

Commit

Permalink
Make tvOS framework build again
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Nov 29, 2017
1 parent 0773db9 commit 474f69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KeyboardAwareInputViewProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ open class KeyboardAwareInputAccessoryView: UIView {
let constant = -(superview.frame.intersection(window.bounds).height)

var offset: CGFloat = 0.0
if #available(iOS 11, *) {
if #available(iOS 11.0, tvOS 11.0, *) {
offset = constant == 0.0 ? 0.0 : superview.safeAreaInsets.bottom
}

Expand Down

0 comments on commit 474f69d

Please sign in to comment.