Open skyline75489 opened 7 years ago
Hard-coded NSImage calls can also be eliminated.
I just found https://github.com/lhc70000/iina/blob/develop/iina/Utility.swift#L53. This kind of hacky thing is why we need SwiftGen 🐼
I agree that we have a lot of hard coded things that we should address, but I'm not sure we need something like SwiftGen. #imageLiteral
and enum
s can go a long way…
SwiftGen just automagically generates enum
s. Nothing else. So there isn't too much dependency. And it saves time, like, a lot.
System and IINA version:
With the help of SwiftGen we can eliminate hard-coded NSLocalizedString call.
See https://github.com/SwiftGen/SwiftGen#localizablestrings