Advertisement
conath

Load UIViewController from nib without typing the filename

Jun 8th, 2020
1,324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.13 KB | None | 0 0
  1. extension UIViewController {
  2.     static func inib() -> Self {
  3.         return Self.init(nibName: "\(Self.self)", bundle: nil)
  4.     }
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement