Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watchOS 9.0 Build issue #3

Closed
Kyle-Ye opened this issue May 21, 2023 · 0 comments · Fixed by #4
Closed

watchOS 9.0 Build issue #3

Kyle-Ye opened this issue May 21, 2023 · 0 comments · Fixed by #4

Comments

@Kyle-Ye
Copy link
Contributor

Kyle-Ye commented May 21, 2023

Package.swift say it supports watchOS 9. But actually it will fail to compile

private func picker<Value>(_ selection: Binding<Value>) -> some View where Value: Hashable & CaseIterable & CustomStringConvertible, Value.AllCases: RandomAccessCollection {
    Picker("", selection: selection.animation()) {
        ForEach(Value.allCases, id: \.self) { value in
            Text(value.description).tag(value)
        }
    }
    .pickerStyle(.segmented) // ❌ 'segmented' is unavailable in watchOS
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant