Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sources/SwiftyKeyboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import UIKit
@objcMembers public class SwiftyKeyboard: UIInputView, UIInputViewAudioFeedback {

// MARK: - UIInputViewAudioFeedback
private var enableInputClicksWhenVisible: Bool = true
public var enableInputClicksWhenVisible: Bool = true

// MARK: - Constants
private let keyboardRows = 4
Expand Down Expand Up @@ -205,7 +205,7 @@ import UIKit
self.addSubview(button)
}

if UI_USER_INTERFACE_IDIOM() == .phone {
if UIDevice.current.userInterfaceIdiom == .phone {
for separatorView in self.separatorViews {
self.addSubview(separatorView)
}
Expand Down Expand Up @@ -373,7 +373,7 @@ import UIKit
let bounds = self.bounds

// Settings.
let interfaceIdiom = UI_USER_INTERFACE_IDIOM()
let interfaceIdiom = UIDevice.current.userInterfaceIdiom
let spacing : CGFloat = (interfaceIdiom == .pad) ? self.keyboardPadBorder : 0.0
let allowsDecimalPoint = self.allowsDecimalPoint

Expand Down Expand Up @@ -511,7 +511,7 @@ import UIKit
}

public override func sizeThatFits(_ size: CGSize) -> CGSize {
let interfaceIdiom = UI_USER_INTERFACE_IDIOM()
let interfaceIdiom = UIDevice.current.userInterfaceIdiom
let spacing = (interfaceIdiom == .pad) ? self.keyboardPadBorder : 0.0

var newSize = size
Expand Down