Skip to content

Commit

Permalink
tidy up ios 8 support, removed redundant else
Browse files Browse the repository at this point in the history
  • Loading branch information
totocaster committed Nov 10, 2016
1 parent 45d802c commit 92125c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Typist.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,11 @@ public class Typist: NSObject {
internal var callbacks: [KeyboardEvent : TypistCallback] = [:]

internal func keyboardOptions(fromNotificationDictionary userInfo: [AnyHashable : Any]?) -> KeyboardOptions {
var currentApp = false
var currentApp = true
if #available(iOS 9.0, *) {
if let value = (userInfo?[UIKeyboardIsLocalUserInfoKey] as? NSNumber)?.boolValue {
currentApp = value
}
} else {
currentApp = true
}

var endFrame = CGRect()
Expand Down

0 comments on commit 92125c1

Please sign in to comment.