Comments (3)
Hi @amarcadet
Adding the return type to initialViewController
would indeed be a nice enhancement. Could be a great feature to add.
However, I don't see how this is related to your `Static member 'Loading' cannot be used on instance of type 'StoryboardScene.Loading'`` error. Did you mean to file two separate issue, one for the feature request and the other for an actual bug?
from swiftgen.
I just fixed the error you had by modifying the default template (you could have done it on your own template — no need to update SwiftGen for that even). That was due to an ambiguity for the compiler because the enum and case had the same name, so I disambiguated it.
Regarding initialViewController
returning the proper subclass, after thinking about it I'm not sure that's entirely possible. Well it could be, but would require (1) finding the back-reference of the objectID mentioned as being the initialViewController in the storyboard's XML tree (2) more importantly, reimplementing initialViewController
in each generated enum
instead of using the protocol's default implementation. You could make a PR if you like to add this feature yourself, but not sure it's worth the effort to do that myself given that last point.
from swiftgen.
Thanks for the fix!
Regarding initialViewController
, I think it would be a nice to have.I will try to take a look and make PR if I succeed.
from swiftgen.
Related Issues (20)
- FatalError when trying to set Asset.color as foregroundColor into NSMutableAttributedString attribute HOT 2
- Unprintable ASCII character found in Swift Source Code HOT 1
- SVG images being ignored in assets HOT 1
- The SwiftGen configuration automatically substitutes fileprivate in the initialization of ColorAsset HOT 1
- Adding Extra parameter when running SwiftGen through Xcode HOT 1
- Error: `swiftgen.yml` is not a config file HOT 4
- String template is not able to generate a function with a string parameter and a plural int HOT 2
- Make `SwiftUI` types the default and not `UIKit` types. HOT 1
- Color Generated with SwiftUI HOT 2
- disable Font typealias? HOT 1
- Addition of .string file changes all previous strings usage HOT 1
- Ability to change Locale HOT 6
- Feature Request: Public access to either the fallback string or the ability to specify locale HOT 2
- Add ability to refer file name of JSON HOT 3
- Support for visionOS HOT 2
- Is this repo deprecated? HOT 4
- Add an XcodeBuiltToolPlugin for swiftgen HOT 5
- [Homebrew] Error: swiftgen has been disabled because it does not build! HOT 10
- Apple privacy manifest support HOT 2
- SwiftGen Errors on Swift 6 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftgen.