Closed tkafka closed 6 months ago
Or, maybe just add .watchOS(.v6)
into supported platforms? I'll try this.
This seems it might work, but I have been unable to get the shared library to work with Inject because of other problems. Would you try adding it? I created a PR: https://github.com/krzysztofzablocki/Inject/pull/23
(Obligatory intro - Inject is awesome, thank you!)
Hello, I develop an app that shares view code amon iOS and WatchOS extension targetys in a library. The library has set WatchOS 7.0 as a minimum target (see below), but adding
Inject
a dependency produces a lot of errors with SwiftUI APIs not available before WatchOS 6.Could you please mark the classes (or a whole package - I don't know if it's possible) as WatcOS 6.0+ only?
Something like
@available(watchOSApplicationExtension 6.0, *)
should help.Or is there a better way? I am confused as for why does Xcode try to build the package for all WatchOS versions if it's only going to be used in a library that targets 7.0+?
Thank you! Tomas