krzyzanowskim / Natalie

Natalie - Storyboard Code Generator (for Swift)
http://blog.krzyzanowskim.com/2015/04/15/natalie-storyboard-code-generator/
MIT License
1.17k stars 74 forks source link

Inheritance errors #103

Closed hefgi closed 6 years ago

hefgi commented 7 years ago

If I have a class who inherit from an other one, here's what I get :

screen shot 2017-08-03 at 14 58 35
phimage commented 6 years ago

I think there is no information in storyboard XML to know if a controller has inheritance. But I have a solution that can be implemented. In interface builder, natalie user must click on its controller (here QRReaderViewController), then "Identity Inspector", and add a "User Definied Runtimes Attributes" like "natalie.inherit" of type boolean to true

In natalie code we can read the userDefinedRuntimeAttributes of controller to add override or not I can do it after swift 4

phimage commented 6 years ago

duplicate #78 #10 and fixed