Skip to content

userInterfaceStyle not supported on watchOS #21

@varyamereon

Description

@varyamereon

I'm trying to add ColorTokensKit to my watch app, but even just importing the library into my watch project gives me a couple of errors in "UIColor+Dynamic.swift":

'init(dynamicProvider:)' is unavailable in watchOS
and
'userInterfaceStyle' is unavailable in watchOS

I wonder if the #if canImport(UIKit) is not enough, we also need && !os(watchOS)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions