Questions tagged [watchkit]

WatchKit is an integral part of the Apple Watch experience for third-party applications. It contains the classes for creating Apple Watch applications and it ensures that an Apple Watch application can talk to its corresponding WatchKit extension.

WatchKit allows iOS developers to create rich, third-party app extensions with actionable items and notifications for the Apple Watch, as they've built apps for the iPhone and iPad.

More information on WatchKit:

3223 questions
14
votes
1 answer

Error message in Xcode when working with watch complications

When executing template.headerTextProvider = CLKSimpleTextProvider(text: header) in ComplicationController, I receive a whole number of similar error messages which I have not found a way to resolve so far: objc[4499]: Class…
14
votes
1 answer

'openParentApplication(_:reply:)' has been explicitly marked unavailable here - Xcode 7 Beta

After updating to Xcode 7 beta, I receive the following error message: "'openParentApplication(_:reply:)' has been explicitly marked unavailable here", when running the line of code "WKInterfaceController.openParentApplication" Here is my actual…
Aviv
  • 183
  • 1
  • 6
14
votes
1 answer

How do I correctly use "openParentApplication" and "handleWatchKitExtensionRequest" so that "reply()" is called?

Situation: I use openParentApplication in the Watch app to call handleWatchKitExtensionRequest in the main app. This works nicely in the simulator and it also works on the actual devices (Apple Watch and iPhone) when the iPhone app is…
John
  • 8,468
  • 5
  • 36
  • 61
14
votes
4 answers

prepareForSegue equivalent in WatchKit

I have an interface with 2 buttons, both of them call the same interface but with different information. On the traditional interface I use prepareForSegue, but I don't know what's the equivalent one on the WatchKit.
14
votes
2 answers

Difference between Installed & Hidden properties of WKInterfaceLabel

Does anybody know what is the difference between Installed & Hidden properties of WKInterfaceLabel ? Both of them show/hide the label .
Abhishek Bedi
  • 5,205
  • 2
  • 36
  • 62
14
votes
6 answers

Creating progress circle as WKInterfaceImage in Watch App

I am trying to create a progress circle for the Apple Watch version of my app. I know that we aren't able to use UIViews (which would make things so much easier!) so I am looking for alternatives. Basically, I would like to create one of these…
user3746428
  • 11,047
  • 20
  • 81
  • 137
13
votes
6 answers

How to style rows in SwiftUI List on WatchOS?

I'm working with SwiftUI and is trying to make a list of buttons with custom .buttonStyle inside a List view on WatchOS, but can't get it to work. Is this even currently possible, and if so, how? Example project: struct Superhero: Identifiable { …
Daniel Duvanå
  • 260
  • 4
  • 10
13
votes
1 answer

SwiftUI - Apple Watch Menu (Force Touch)

I'm trying to implement a menu on Apple Watch using SwiftUI but I can't find a way to do it. Even on the interface.storyboard, I can't drag/drop the menu. Did you manage to make it work with SwiftUI? If yes, how? I searched online but nothing so…
Daymo502
  • 825
  • 1
  • 6
  • 10
13
votes
1 answer

iOS WKWebView JS doesn't update attribute modification when app in background

Hey I have an iOS app with Watch Extension. When launching the Apple Watch app it launches the iPhone app and keeps it alive by sending sendMessage calls every couple of seconds. The iPhone app then navigates to a website in a WKWebView, checks its…
user2875404
  • 3,048
  • 3
  • 25
  • 47
13
votes
5 answers

How to hide or remove the time from the Apple Watch status bar?

How do I hide or remove the small clock from Apple Watch statusbar screen on my app? I searched the web for this but found nothing! I just discovered that Apple will reject your app if you remove that clock, but my app is a watch face itself and…
Ahmadreza
  • 6,950
  • 5
  • 50
  • 69
13
votes
1 answer

Where to find Taptic feedback API documentation or capabilities for watchOS 2?

I'm interested in building an app for watchOS 2 using haptic feedback. Currently I do not have the Apple Watch, but I have access to the Apple Developer Program. I've tried looking at the watchOS Developer Library and watchOS 2 Release Notes. I do…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
13
votes
6 answers

Apple Store submit fails with Error ITMS-90046, but Associated Domains is not among entitlements

When I first built my app & Watchkit app, I had the "Associated Domains" capability enabled. I've disabled it in the "Capabilities" panel of both the watchkit extension and the companion app, and confirmed that the key is gone from each info.plist.…
brianfit
  • 1,829
  • 1
  • 19
  • 34
13
votes
6 answers

Access Apple Watch's microphone

Now that more and more documentation on the Apple Watch is surfacing has anybody found a way to access and use the device's microphone?
user4179004
13
votes
3 answers

When presenting a WKInterfaceController, how can I change the color of the title used to dismiss the controller?

In my watch app, after presenting a controller with presentControllerWithNames:contexts:, is it possible to change the color of the title in the status bar? For example, in Apple's WatchKit Catalogue sample they have a controller they present…
ChrisCorea
  • 152
  • 1
  • 8
13
votes
4 answers

Preprocessor macro for Apple Watch?

I was looking at Apple's Lister (for Apple Watch, iOS, and OS X) sample. The sample performs a test for iOS and OS X: #import #if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) @import ListerKit; #elif TARGET_OS_MAC @import…
jww
  • 97,681
  • 90
  • 411
  • 885