What\'s the best way to check if a Nib or Xib file exists before trying to load it using initWithNibName:bundle: or similar?
initWithNibName:bundle:
Solution For swift :
guard Bundle.main.path(forResource: "FileName", ofType: "nib") != nil else { ... }