You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.
I have just integrated Natalie with my project using the build script given in the README.
When trying to compile the generated Storyboards.swift, I am having the error Ambiguous type name 'Segue'.
The issue is caused on a custom view controller inheriting from another custom view controller, therefore, on the child view controller, the type Segue can refer to neither it's own type or it's parent's type.
The generated code looks like the following:
extensionX{enumSegue:String,CustomStringConvertible,SegueProtocol{case viewDetail ="viewDetail"varkind:SegueKind?{switch(self){case.viewDetail:returnSegueKind(rawValue:"show")}}vardestination:UIViewController.Type?{switch(self){default:assertionFailure("Unknown destination")returnnil}}varidentifier:String?{returnself.description }vardescription:String{returnself.rawValue }}}extensionUIStoryboardSegue{func selection()->Y.Segue?{ // <-- Error on this line
iflet identifier =self.identifier {returnDeliveryOrderHistoryViewController.Segue(rawValue: identifier)}returnnil}}extensionY{enumSegue:String,CustomStringConvertible,SegueProtocol{case viewDetail ="viewDetail"varkind:SegueKind?{switch(self){case.viewDetail:returnSegueKind(rawValue:"show")}}vardestination:UIViewController.Type?{switch(self){default:assertionFailure("Unknown destination")returnnil}}varidentifier:String?{returnself.description }vardescription:String{returnself.rawValue }}}
On the code above, Y inherits from X, which in turn inherits from UIViewController.
Do you have any recommendations on how to fix the issue?
The text was updated successfully, but these errors were encountered:
Hey @krzyzanowskim, thanks for the heads up. You can find a simple project that reproduces the issue here: https://github.com/moray95/natalie-bug. I'd just like to you to note that I wasn't able to integrate properly natalie with Xcode (the run script generates an empty file) but run it from the command line.
Hello,
I have just integrated Natalie with my project using the build script given in the README.
When trying to compile the generated
Storyboards.swift
, I am having the errorAmbiguous type name 'Segue'
.The issue is caused on a custom view controller inheriting from another custom view controller, therefore, on the child view controller, the type
Segue
can refer to neither it's own type or it's parent's type.The generated code looks like the following:
On the code above,
Y
inherits fromX
, which in turn inherits fromUIViewController
.Do you have any recommendations on how to fix the issue?
The text was updated successfully, but these errors were encountered: