Questions tagged [watchos]

watchOS is Apple's operating system for Apple Watches. Optimized for touch-based interfaces, this OS has a lot in common with iOS, which is the operating system for Apple's mobile devices, but shouldn't be confused with it.

watchOS is Apple's operating system for Apple Watches. Optimized for touch-based interfaces, this OS has a lot in common with , but shouldn't be confused with it.

Currently, the Apple Watch is the only device that runs watchOS. Its API is called WatchKit (see ).

Helpful links

1236 questions
10
votes
1 answer

Swift Package fails to compile for watchOS

My Swift Package fails to compile when selecting the watchOS target. The error message is Failed to load module 'XCTest' and build error details…
TruMan1
  • 33,665
  • 59
  • 184
  • 335
10
votes
0 answers

How to programmatically exit Apple Watch app and return to watch face?

When a Push Notification is received on an Apple Watch, pressing the "dismiss" button dismisses the notification and returns to the watch face screen. Within my Apple Watch app, I would like to implement a similar experience to a notification. That…
pkamb
  • 33,281
  • 23
  • 160
  • 191
9
votes
1 answer

SwiftUI's NavigationView Is Missing The Back Button On Apple Watch

I created an Apple Watch app using SwiftIU. The main view of the app is a List, with NavigationLink to another List. When I'm in one of the internal Lists, the back button isn't on the top of the view. But when I swipe from the side of the screen…
Shahar Melamed
  • 1,534
  • 5
  • 15
  • 23
9
votes
3 answers

How to draw text along circular path using SwiftUI

I need some help on how to generate a single line text in a circular path using SwiftUI. I am trying to replicate the curved text in these Image. Is this possible in SwiftUI? Thanks.
9
votes
1 answer

How to use WebKit on watchOS 5?

At yesterday's WWDC, Apple have announced WebKit support in watchOS 5. I have downloaded Xcode 10 but can't find any reference to that in the Interface Builder or in the Frameworks and Libraries tab. Although Apple's WebKit website has been unable…
user2875404
  • 3,048
  • 3
  • 25
  • 47
9
votes
2 answers

Can I keep a Watch app running in background?

I know iOS allows background tasks to run and, for example, continue to receive location updates, but is it possible to do this in a watch app? In Xcode 9.3, I have configured my app for "background modes" and selected location, and that has…
alan.raceQs
  • 411
  • 4
  • 11
9
votes
1 answer

Presenting multiple WKInterfaceController(in page base navigation) cause extra black space on top in watchOS4.

The application was running well before watchOS4 but in watchOS4 there is extra black space is visible on top of WKInterfaceController. This case happens in present WKInterfaceController only but seems working fine if I try to push…
Tejas Ardeshna
  • 4,343
  • 2
  • 20
  • 39
9
votes
2 answers

WKURLSessionRefreshBackgroundTask isn't called when attempting to do background refreshes in watchOS

I'm working on a complication to get scheduled data from a web service. Every 20-30 minutes (or manually), I am scheduling a WKRefreshBackgroundTask to do this. As suggested by Apple, I want the OS to handle the fetching of this data via a…
9
votes
1 answer

Upgrading existing watchOS 1 project to watchOS 2

I don't want to keep and support watchOS 1, instead, I want to upgrade my existing watchOS 1 project to watchOS 2 without recreating an Interface.Storyboard and etc. Apple Doc isn't very specific to resolve this case: watchOS 2 Transition…
Kevin
  • 828
  • 11
  • 14
8
votes
1 answer

Using KMM shared library for use in Xcode gives several warnings and errors when building in Xcode

Using KMM shared library for use in Xcode gives several warnings when building in Xcode Background information First, let me explain what I did in order to provide a better understanding of what I did and where I run into some problems building my…
Bash
  • 125
  • 6
8
votes
0 answers

Is it possible to open the Settings app programatically in watchOS?

I'm currently using Swift to write an independent Apple Watch app for watchOS 7+. My app uses Location Services, and in case the user doesn't allow that at first, I'd like to have a button inside my watchOS app to send my user to the part of the…
8
votes
1 answer

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) .hueRotation(Angle.degrees(45)) …
Derick Mathews
  • 347
  • 2
  • 3
  • 12
8
votes
5 answers

WatchOS app not detecting companion iOS app

I am making an independent Apple Watch app (but with a companion iPhone app which is not necessary for the watch app to function.) The app uses WatchConnectivity to sync data between devices if iPhone companion app is installed. I am able to call…
Cakelly
  • 401
  • 3
  • 9
8
votes
1 answer

Adding WKInterfaceTimer to SwiftUI

How to add WKInterfaceTimer to SwiftUI ? Anyone who already did it ? There is no init for WKInterfaceTimer how to do it ?
Bogdan Bogdanov
  • 882
  • 11
  • 36
  • 79
8
votes
2 answers

This decoder will only decode classes that adopt NSSecureCoding

From AppDelegate i call this: -(void)application:(UIApplication *)application handleWatchKitExtensionRequest:(NSDictionary *)userInfo reply:(void (^)(NSDictionary *))reply{ [SavedSearchesHack getAllMatches:^(MatchCollection * _Nonnull…
Godfather
  • 4,040
  • 6
  • 43
  • 70
1 2
3
82 83