Post not yet marked as solved
Hello,Im trying to add WKInterfaceActivityRing to my watch project and something is not working, the ring just stays dulled out, not getting any data.So to test it I created a blank project and added a WKInterfaceActivityRing to the interface. I connected it up to the outlet and in the interface Controller i added this code with simple values.import WatchKit
import HealthKit@IBOutletvar activityRing: WKInterfaceActivityRing!
let activitySummary = HKActivitySummary()
activitySummary.activeEnergyBurned = HKQuantity(unit: HKUnit.kilocalorie(), doubleValue: 1000)
activitySummary.activeEnergyBurnedGoal = HKQuantity(unit: HKUnit.kilocalorie(), doubleValue: 1500)
activitySummary.appleExerciseTime = HKQuantity(unit: HKUnit.minute(), doubleValue: 20)
activitySummary.appleExerciseTimeGoal = HKQuantity(unit: HKUnit.minute(), doubleValue: 30)
activitySummary.appleStandHours = HKQuantity(unit: HKUnit.count(), doubleValue: 3)
activitySummary.appleStandHoursGoal = HKQuantity(unit: HKUnit.count(), doubleValue: 12)
activityRing.setActivitySummary(activitySummary, animated: true)Everthing I have tried the ring just stays dulled out, not getting any data.Does anyone know where i can find help with this?Xocde Version 11.3.1 (11C504)Thank you.
Post not yet marked as solved
Hi,Since i downloaded Xcode 11.2.1 from the developer website and nd put it into Applications folder on my Xcode project im getting this error -objc[17956]: Class AVAssetDownloadTask is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework/CFNetwork (0x4149e70) and /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/AVFoundation.framework/AVFoundation (0x149f843c). One of the two will be used. Which one is undefined.objc[17956]: Class AVAssetDownloadURLSession is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework/CFNetwork (0x414aac8) and /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/AVFoundation.framework/AVFoundation (0x149f8464). One of the two will be used. Which one is undefined.Im not even sure if i am using anything to do with AVAssetDownloadTask in my watch app.How can i resolve this warning?Thanks.
Post not yet marked as solved
Hi,I setup the Now Playing screen on my Watch App as per the instructions from Apple - Adding a Now Playing View in Xcode Version 11.1 (11A1027) and from the main screen I go to the next set of screens like this -@IBAction func startButtonPressed() {
WKInterfaceDevice.current().play(.start)
WKInterfaceController.reloadRootPageControllers(withNames: ["WorkoutSession", "NowPlaying"], contexts: [0], orientation: WKPageOrientation(rawValue: 0)!, pageIndex: 0)
}The problem is that when I swipe a few times between the WorkoutSession screen and the Now Playing Screen my workout screen goes blank. Ive tried it with a simple label on a blank screen and it does the same thing, no matter what is on the screen the Now Playing screen blanks the other one. This is on a physical watch not the simulator. Is it because of the way Im navigating to the workout screen and the Now playing screen using WKInterfaceController.reloadRootPageControllers because this is the only way I can make sure there is no close or go back or wipe back action that would wreak the workout session.Anyone else had this problem with the Now Playing Screen?
Post not yet marked as solved
Hi,Can i build a template for the privacy of.complications like I am doing for the timeline entry or does it just show the placeholder image?This is what im doing for the watch compllcationswitch complication.family {
case .circularSmall:
let circularSmallTemplate = CLKComplicationTemplateCircularSmallRingImage()
let image = UIImage(named: "complicationImage")
circularSmallTemplate.imageProvider = CLKImageProvider(onePieceImage: image!)
circularSmallTemplate.ringStyle = .closed
circularSmallTemplate.fillFraction = 0.0
let entry = CLKComplicationTimelineEntry(date: Date(), complicationTemplate: circularSmallTemplate)
handler(entry)
...and for the placeholder template very similar// MARK: - Placeholder Templates
func getLocalizableSampleTemplate(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTemplate?) -> Void) {
// This method will be called once per supported complication, and the results will be cached
switch complication.family {
case .circularSmall:
let circularSmallTemplate = CLKComplicationTemplateCircularSmallRingImage()
let image = UIImage(named: "complicationImage")
circularSmallTemplate.imageProvider = CLKImageProvider(onePieceImage: image!)
circularSmallTemplate.ringStyle = .closed
circularSmallTemplate.fillFraction = 0.66
handler(circularSmallTemplate)
...but for the privacy I have se it to func getPrivacyBehavior(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationPrivacyBehavior) -> Void) {
handler(.hideOnLockScreen)
}But it just shows the complication image i put into the assest folder. I would like it to look more like the actual complication, not just the placeholder image. For example the Activity app on the corner bezzel tamplate has a complication with rinngs that is not filled, and the word ACTIVITY curverd around. Mine just has an image and "-- --".Thank you in advance.
Post not yet marked as solved
I just installed iOS 13 public beta and when I went to use the reminders app it asked me to update now or later. When I updated the reminders on all my other devices, iPhone 6, iPad mini 3 and MacBook Air all disappeared 😟 Not happy about this because none of my other devices will be getting an update.