Skip to content

Instantly share code, notes, and snippets.

@susieyy
Created January 14, 2017 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save susieyy/3f48a5eca2a316163363abf64d3d93a8 to your computer and use it in GitHub Desktop.
Save susieyy/3f48a5eca2a316163363abf64d3d93a8 to your computer and use it in GitHub Desktop.
#swtws
// HogeView.swift has HogeView.nib
final class HogeView: UIView, InstantiatableFromNib { }
// HogeViewController.swift
final class HogeViewController: UIViewContoller {
private lazy var hogeView: HogeView = { return HogeView.instantiateFromNib() }()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment