2

The following WatchOs App example is very short, but already not functioning as it is expected, when using Digital Crown (full code):

import SwiftUI

struct ContentView: View {
   
   let array = ["One","Two","Three","Four"]
   @State var selection = "One"
    
    var body: some View {
        Picker("Array", selection: $selection) {
            ForEach(array, id: \.self) {
                Text($0)
            }
        }
    }
}

The following 2 errors are thrown, when using Digital Crown for scrolling: Xcode errors: ScrollView contentOffset + NSOSStatusErrorDomain

  1. ScrollView contentOffset binding has been read; this will cause grossly inefficient view performance as the ScrollView's content will be updated whenever its contentOffset changes. Read the contentOffset binding in a view that is not parented between the creator of the binding and the ScrollView to avoid this.
  2. Error: Error Domain=NSOSStatusErrorDomain Code=-536870187 "(null)"

Unsuccessfully tested on real device (Apple Watch 8, 45mm, watchOS 10.3) and Xcode 15.2.

Any help appreciated. Thanks a lot.

1
  • Again unsuccessfully tested with watchOs11.2 in Xcode 16.2 (Simulator and real device). How else properly do date picking on Apple Watch App? Commented Mar 9 at 9:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.