Closed Skogetroll closed 7 years ago
Sure, send a PR
Done: https://github.com/orta/cocoapods-keys/pull/155
Also, is there any reason why keys are methods
and not a properties?
For Objective C
both are almost interchangable in calling syntax, but for Swift
there's difference, small (methods have parenthesis and properties don't), but still. And all those generated key code looks more like readonly properties than methods.
So maybe change like this is preferrable?
- - (NSString *)<%= key %>;<% end %>
+ @property (readonly) NSString *<%= key %>;<% end %>
I think this was because of some runtime hackery, can't remember anymore 👍
Give it a shot, and if it works, I'm happy to have it as properties
@dynamic
everything works fine.
Is it possible to add nullability annotations for generated classes?
It would mainly help
Swift
developers, because it would be easier to guess eitherkeys.someKey()
always returns value or can returnnil
.