4 ms·
What about UI? Are you forced to do layout in code, or are you able to load in Xibs or Storyboards?
by st3v3r 10y ago
What about UI? Are you forced to do layout in code, or are you able to load in Xibs or Storyboards?
- kattrali 10y agoYou can take either approach. I opted to do it in code[0] as a personal preference since it reduced the amount of time spent jumping between Xcode and Vim, but creating a xib or storyboard and referencing it from Rust using NSBundle resources is just as possible. Maybe I should add examples of using resources to the code samples in the blog post. Thanks! 0: https://github.com/kattrali/webkitten/blob/6ac4ced187b44fe913ed59db6dd632762b3e5fdd/webkitten-cocoa/src/ui/window.rs#L300-L305 https://github.com/kattrali/webkitten/blob/6ac4ced187b44fe91...
- st3v3r 10y agoThat would be nice. I myself am someone who can't stand doing UI work in code, and prefer to lay it out visually if possible.