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
0
votes
1 answer

WatchOS How to keep to get acceleration data

I'm writing independent watchOS app. I'd like to keep app turn on & getting acceleration data, but app go sleep & don't get data shortly. I think it might be hard to keep getting data according to my sources, so I use remote-notification & try to…
yuki
  • 63
  • 6
0
votes
0 answers

Digitalcrownrotation variable stride value

I'm trying to code a variable stride value for my digitalcrownrotation but can't get it to work. In this example here I'm using a conditional value in the "by" parameter: self.counterValue < 10.0 ? 1 : 20. Any idea what I'm doing wrong ? struct…
Bjorn Morrhaye
  • 687
  • 9
  • 30
0
votes
1 answer

Is it possible to add an AppDelegate to an independent watchOS SwiftUI app?

I am trying to add an AppDelegate to a standalone watchOS SwiftUI app (no companion iOS app) as indicated in here, but I can't seem to resolve the issue Cannot find type 'UIApplicationDelegate' in scope Explicitly adding an import UIKit does not…
Paolo Marini
  • 323
  • 1
  • 3
  • 13
0
votes
1 answer

Scratchy AVAudioengine on Apple Watch

I'm running basic oscillator and synthesizer with a sine wave (created with AVAudioEngine) using this repo https://github.com/GrantJEmerson/SwiftSynth, but sound is scratchy on Apple Watch Series 2 running OS (6.2.6), however, it sounds clear on…
Ozgur Sahin
  • 1,305
  • 16
  • 24
0
votes
1 answer

Build a basic Altimeter with SwiftUi for Apple Watch

I am trying to build a MVP with SwiftUI that simply shows me the changes in altitude on my Apple Watch. From there I will figure out where to go next (I want to use it for paragliding and other aviation things). I have previous experience in python,…
Luke Crouch
  • 107
  • 6
0
votes
1 answer

Complication family for Nike Hybrid watchface (ring text)

i want to build a complication for the nike hybrid watchface on the newer apple watch nike. This watchface has a complication in the middle ring. You can definetely make your own complication for this type, because i can choose a complication for…
Thieri
  • 203
  • 1
  • 10
0
votes
0 answers

watchOS vs iOS and Delegate

In Xcode I am having issues between watchOS and iOS. The following code is the same for both targets: watchOS class ExtensionDelegate: NSObject, WKExtensionDelegate { var variable1: Float? } iOS class AppDelegate: UIResponder,…
Michael Rowe
  • 870
  • 2
  • 11
  • 27
0
votes
2 answers

Adding CocoaPods to watchOS Targets

I'm following this small perhaps outdated tutorial https://medium.com/@JTEhlert/using-cocoapods-with-watchos-2-723b92eae04f I'm using Xcode 12.0, Cocoapods 1.8.4 on mac OS 10.15.5 target 'Watch Extension' do platform: watchos, '2.0' …
Sean Dev
  • 1,239
  • 1
  • 17
  • 31
0
votes
1 answer

WatchKit App Get's Nil when initializing class

I am trying to update my app to utilize SwiftUI architecture. It is a stand alone WatchKit app. I used to pass a few key classes between views utilizing the delegate approach. Since I am trying to utilize environmentObject, I would like to…
Michael Rowe
  • 870
  • 2
  • 11
  • 27
0
votes
1 answer

How do I run my application from xcode on Apple Watch?

I am trying to run my first WatchKit application on Apple Watch (watchOS 7) from latest XCode (12.0). I can select emulator as a destinantion, but I have no idea how to add my real watch to the list, so I can start testing on a real device. I have…
M. Stefański
  • 319
  • 2
  • 8
0
votes
2 answers

SwiftUI: List is messing up animation for its subviews inside an HStack

I'm making a WatchOS app that displays a bunch of real-time arrival times. I want to place a view, a real-time indicator I designed, on the trailing end of each cell of a List that will be continuously animated. The real-time indicator view just has…
0
votes
1 answer

Which Design Pattern should be used in watch app swift?

I have searched a lot through internet read so many Article but couldn't find even a single answer to my question, that exactly which design pattern[MVC, MVP, MVVM, VIPER] should I use in my watch OS app. I have a fitness app which tracks the…
0
votes
1 answer

Unable to install ad-hoc watchOS companion app

I have a companion app for my react-native iOS app. I created an ad-hoc build to install it. But the install just fails when I try to install it to the watch. I couldn't find anything useful from the watch logs. Here are the logs from the…
mohsinulhaq
  • 1,059
  • 1
  • 18
  • 31
0
votes
0 answers

watchOS 7 beta networking gives SSL error

I have a watch app that is working OK with watchOS 6. It uses AlamoFire 5 for networking. Testing it with watchOS 7, it gives this error "Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server…
marcus
  • 11
  • 1
0
votes
0 answers

Can't I use TensorFlowLite in ios watch app?

I am trying to use tensorflowlite by importing into ios watch app. However, this error occurs when I try to install'TensorFlowLiteSwift' using cocoapods. [!] The platform of the target myapp WatchKit Extension (watchOS 2.0) is not compatible with…
Taylous
  • 260
  • 4
  • 15