R.swift: Use of unresolved identifier 'instantiate' (5.0.3)

Created on 27 Apr 2019  路  2Comments  路  Source: mac-cain13/R.swift

`struct nib: Rswift.Validatable {
static func validate() throws {
try _UpdateView.validate()
}

struct _FUDemoBar: Rswift.NibResourceType {
  let bundle = R.hostingBundle
  let name = "FUDemoBar"

  func firstView(owner ownerOrNil: AnyObject?, options optionsOrNil: [UINib.OptionsKey : Any]? = nil) -> FUDemoBar? {
    return instantiate(withOwner: ownerOrNil, options: optionsOrNil)[0] as? FUDemoBar
  }

  fileprivate init() {}
}

}`

Most helpful comment

Resolved; I was stupid to build with Swift 4.0.

All 2 comments

In my another project, didn't get this error, don't know what's the problem.

Resolved; I was stupid to build with Swift 4.0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexpersian picture alexpersian  路  6Comments

Przemyslaw-Wosko picture Przemyslaw-Wosko  路  4Comments

tomlokhorst picture tomlokhorst  路  3Comments

aliasdoc picture aliasdoc  路  3Comments

mac-cain13 picture mac-cain13  路  5Comments