[iOS] UIKeyCommands

UIKeyCommands

사용법

self.addKeyCommand(.init(input: "\r",
                         modifierFlags: [],
                         action: #selector(loginBtnDidTapped))
)
.init(input: "\u{8}", modifierFlags: [], action: #selector(loginBtnDidTapped)
.init(input: "\1", modifierFlags: [], action: #selector(loginBtnDidTapped)
.init(input: UIKeyCommand.inputUpArrow, modifierFlags: [], action: #selector(loginBtnDidTapped)

위와 같은 방법들이 있다