Top "Watchos" questions

watchOS is Apple's operating system for Apple Watches.

Type '()' cannot conform to 'View'; only struct/enum/class types can conform to protocols; calling functions with SwiftUI

I have a Swift UI struct called MyWatchView with this stack. VStack (alignment: .center) { HStack { Toggle(isOn: $play) { Text("") } .padding(.…

ios struct swiftui watchos
Type '()' cannot conform to 'View'; only struct/enum/class types can conform to protocols calling calling functions with swift ui

I have a SwiftUI View called MyWatchView with this stack: VStack (alignment: .center) { HStack { Toggle(isOn: $play) { Text("") } .padding(.trailing, 30.0) .…

swift struct swiftui func watchos
Watch os 2.0 beta: access heart beat rate

With Watch OS 2.0 developers are supposed to be allowed to access heart beat sensors.... I would love to play a …

ios watchkit apple-watch watchos
Equal widths of subviews with SwiftUI

I'm trying to build a simple watchOS UI with SwiftUI with two pieces of information side-by-side above a button. I'd …

watchos swiftui
SwiftUI call function on variable change

I am trying to convert a view of my watchOS App to Swift UI. I wanted to port the volume …

swift swiftui watchos
Xcode 7 supporting watch OS1 and OS2

I have been fiddling with Xcode 7 for sometime now, I get to know that it supports only Swift 2 and there …

ios xcode7 watchos-2 watchos
handleWatchKitExtensionRequest not responding to openParentApplication in Watchkit Extension (Swift)

I am trying to send information from my WatchKit App over to my main parent application and from what I …

ios swift watchkit watchos
Error ITMS-90168: "The binary you uploaded was invalid."

I am trying to upload an application to the App Store. It contains a watchOS 2 app, watchOS "1" extension, and a …

ios xcode app-store-connect watchos