0

I'm using a Xib file and code programmatically to create a custom keyboard. I want different buttons based on the phone the user uses. Vary for traits does not exactly work for what I want. I'd rather make multiple Xib files and have them show based on the on the phone size of the user. Anyone have any idea how I can do this?

Eric
  • 1
  • 1

1 Answers1

0

You can use this answer to grab the user's device model: Device Model and then load in your Xib according to what the user is currently using.

let vc = UIViewController(nibName: "name", bundle: nil)
Jacob Boyd
  • 612
  • 3
  • 18