Questions tagged [watchos-6]

Only use this tag for questions that specifically apply to the Apple watchOS version 6. Use the [watch-os] tag for questions related to watchOS generally. Hardware questions generally belonging to the Apple Watch should be in the Ask Different community.

watchOS version 6 is an operating system for SmartWatches produced by Apple.

Read more about it on the developer page

84 questions
2
votes
1 answer

SwiftUI Digital Crown stepping through numbers not working

I'm bashing my face against a wall trying to figure out why I can't get the .digitalCrownRotation feature to work on a Text UI Component in SwiftUI for WatchOS. Here's my code: import SwiftUI struct ButtonView: View { @State private var…
Barry Michael Doyle
  • 9,333
  • 30
  • 83
  • 143
2
votes
1 answer

Keep WatchKit Extension code (git repo) separated from the existing iPhone code (repo)

I wanted to add a WatchKit Extension (with SwiftUI supported on iOS13+) to my existing app (target iOS12) while keeping both codebase separated (two repos). How can I separate the WatchKit Extension code from the Mobile One? Will my Watch App with…
Ouadie
  • 13,005
  • 4
  • 52
  • 62
2
votes
2 answers

Problem passing value with SwiftUI List(), ForEach(), .onTapGesture WatchOS6

I am trying to use the .onTapGesture() to call a method on the tapped view and pass some kind of ID or any other form of identifier, but i dont know how to. i have a view ListView that i create from data that i get from my array trackPreviewList:…
Philiong
  • 188
  • 1
  • 8
2
votes
0 answers

SwiftUI TextField customisation in WatchOS for removing emoji option

I am trying to add a text input field using SwiftUI TextField in watchOs 6.1. I am getting following three options for providing inputs. i.e. Voice recorder, scribble pad and emoji option as shown in screen shot. I need only voice recorder option…
2
votes
0 answers

Apple watchOS 6.1 isBatteryMonitoringEnabled is not being set to true

Swift nube here with Swift 5 on Xcode 11. I am simply trying to get the status of my battery. To do this I know I need to enable/set "isBatteryMonitoringEnabled" to true. I enter the following line: …
HirsuteJim
  • 529
  • 4
  • 13
2
votes
0 answers

WatchOS: Bluetooth CBCentralManager is always in 'unsupported' state on stand-alone Apple Watch app

As a little experiment I am trying to build a stand-alone WatchOS 6+ app with Bluetooth interaction. I start with a simple code which I use many times: final class MyBluetoothInterface: NSObject, CBCentralManagerDelegate, CBPeripheralDelegate { …
2
votes
1 answer

Issues implementing navigation from a main controller to page based controllers in WatchOS using SwiftUI

I'm trying to do do something like this using SwiftUI. So far I have the ability to go from one main view to a page based views but I cannot scroll between the page views. The storyboard looks like this: As you can see I do not have any segues or…
39fredy
  • 1,923
  • 2
  • 21
  • 40
2
votes
1 answer

Can an iOS app be added later to an Apple Watch only app?

Beginning with WatchOS 6 Apple makes it possible to ship Watch-only apps. While we can first ship an iOS app and later add a companion app for the Apple Watch, I'm wondering if the reverse is possible as well: Can we ship an Apple Watch-only app,…
Lars Blumberg
  • 19,326
  • 11
  • 90
  • 127
2
votes
1 answer

Implications of converting dependent watchOS app to independent with watchOS 6

I am considering updating to an independent app for watchOS 6 (as Apple suggests) but it's not clear to me what will happen to users of older watchOS versions that have my app installed. More specifically: What will happen if a user had the…
stakri
  • 1,357
  • 1
  • 11
  • 14
2
votes
1 answer

How can one publish watchos independent apps?

I developed an watchos 6 independent app. How can I publish it? On iTunes Connect I have only ios and tvos apps available for creation. I could not find any information on apple website about this.
Jelly
  • 4,522
  • 6
  • 26
  • 42
2
votes
1 answer

How to inject .environmentObject() in watchOS6

I want to inject an EnvironmentObject while creating a SwiftUI view in watchOS6. But since WKHostingController expects a Concrete type I am not able to do the following ContentView().environmentObject(UserData()) class HostingController:…
Nikhil Muskur
  • 208
  • 1
  • 11
2
votes
4 answers

Strange inner view in SwiftUI buttons on Watch

I am just starting out with both Watch development and SwiftUI, and thought I would start with a simple Login Screen. I have made two buttons of two different styles. The strange thing is that my buttons have a strange red inner view to them and I…
Brett
  • 1,647
  • 16
  • 34
1
vote
0 answers

isMagnetometerAvailable always return false on Apple Watch series 6

I'm writing the code to access motion data by CMMotionManager(). I can get Acceleration, User accel, Gravity, Attitude, and Rotation rate correctly. Now I want to add the Magnetometer reading function. Follow to existing codes, the section looks…
Gelion
  • 51
  • 4
1
vote
3 answers

SwiftUI — How can I display a countdown in a ScrollView?

I'm trying to make a SwiftUI app for Apple Watch that requires a countdown timer within a ScrollView. However, when I put a date formatter in a ScrollView, the app crashes (at least in the Simulator — I can't test on a real device because I have…
1
vote
2 answers

SwiftUI NavigationLink not pushing view programmatically

I am having issues with pushing a view in SwiftUI by using a NavigationLink. Currently I have it set up so that a binding boolean is set to "true" depending on whether a login was successful or not. However, when I run the code, the view is not…
Diego Miranda
  • 53
  • 1
  • 5