Thanks for the reply! After careful consideration, I think this modification is in line with the convention of os() conditional compilation, even if it will bring a lot of code changes. Because #if os(iOS)/os(macOS)/os(watchOS)/os(tvOS)/os(visionOS) should be mutually exclusive.
Topic:
Programming Languages
SubTopic:
Swift
Tags: