Reputation: 9309
I am very new to swift 3 and ios development in general. I got the basic custom keyboard showing up on my device. however, the very first step is to now build a footer area with following things:
a button (to switch keyboard), a tab showing some custom stuff i am aiming for (consider blank tab for now) and another tab to show a regular keyboard.
Questions:
I was seeing creating a simple button is like hell 10 lines of code
func createButton(){
button = UIButton(frame: CGRect(x: 0, y: 0, width: 44, height: 44))
button.setTitle("Get Quote", for: .normal)
button.isUserInteractionEnabled = true
button.addTarget(self, action: #selector(ratingButtonTapped), for: .touchUpInside)
view.addSubview(button)
button.translatesAutoresizingMaskIntoConstraints = false;
button.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
}
i will be dead creating the whole footer bar and the regular keyboard. please advise
Upvotes: 0
Views: 528
Reputation: 2099
Question 1: Yes, you have to since apple doesnt provide the native keyboard to use. However there are plenty Custom keybpard open source you can built on top them. This is one of them I used in the past : https://github.com/archagon/tasty-imitation-keyboard
Question 2: Footer bar is a normal UIView, just like you build a UIView in a normal application
Hope this helps!
Upvotes: 1