wxxsw / SwiftTheme

🎨 Powerful theme/skin manager for iOS 9+ 主题/换肤, 暗色模式
MIT License
2.52k stars 306 forks source link

Questions regarding @objc usage + Multiplatform Swift support. #162

Closed ghost closed 2 years ago

ghost commented 2 years ago

Why does this library reference @objc so much?

Also, does it support tvOS, macOS, and watchOS? 🤔

wxxsw commented 2 years ago

Because this library also supports objective-c.

SwiftTheme only supports iOS9+ and tvOS9+

wxxsw commented 2 years ago

The main work is that each time a platform is added, we need to extend the theme_ method for each ui component of the corresponding platform. Because tvOS is the same as the iOS control, it is compatible.

All my repositories are what I used to use and my main job is to develop for iOS, so I can guarantee that it will work on iOS. For example to support macOS, I may not be able to guarantee its stability, so I will not do that.

wxxsw commented 2 years ago

Generally I will accept small submissions. If it is a large submission, there will be higher requirements. For example, if you want to support macOS, there is a simple Demo, and you need to consider that it will not affect the work of iOS and tvOS. This may require a lot of judgment on the existing library, because many iOS, The common controls of tvOS have not been judged by the device, and the final code quality will not deteriorate.