Post

Replies

Boosts

Views

Created

can I get current location in widgetKit
As far as I can tell in my app I am requesting current location in the app and in the widget the same, but I am not ever seeing my widget make the network call the I would expect if current location was successful. I have the same info plist permissions for usage and request for access in both the app and the widget ( runs the same shared code ). My question is does widgetKit work to get core location similar to the the way that today extensions work. or do I need to cache it from the phone app and hope its been updated ?
4
0
3.1k
Aug ’20
On iOS 15.2, how do I load a cloudKit public container with user not logged in to iCloud
I am using the following to initialize my PersistenCloudKitContainer with the goal of loading a shared poblic cloudKit database: container = NSPersistentCloudKitContainer(name: "FaceExplorer")           guard let description = container.persistentStoreDescriptions.first else {        print("Can't set description")        fatalError("Error")      }             //ios 14 bug fix https://developer.apple.com/forums/thread/682925     description.cloudKitContainerOptions?.setValue(1, forKey: "databaseScope") // "normal" / ios 15 version description.cloudKitContainerOptions?.databaseScope = .public           //seems to work & Load on iOS14.5     description.cloudKitContainerOptions?.setValue("iCloud.com.myDomain.myContainerID", forKey: "containerIdentifier") container.loadPersistentStores(completionHandler: { (storeDescription, error) in ... This all works great on iOS14 and also loads on iOS15.0 - 15.2 with users logged into iCloud with the iCloud drive option checked. However, when the iCloud drive option is not checked on iOS15 only, the container will not load. Please help me figure out what I might be missing or doing wrong. Thanks
0
0
586
Jan ’22
in OS26, X Large circle uses small circle size for the maximum image sizes
Create a static widget kit based widget for watchKit. Use swiftUI and an image. IE on 42mm you can import a 141x141 image at 2x. Import a 141x141 image in the widget and load it in swiftUI. In watchOS 11.x simulator the image will allow up to the size for X Large circles, and on os26, it will not load and complain the image is too large and report the area for the smaller circle, IE 89x89 @ 2x for 41mm Also submitted a "feedback" ticket FB20506200 This is a big issue b/c the size difference for X large circles v the smaller circles is really large. To get existing images to load I am having to resize them down 75-80% on OS26 in the X Large complication.
1
0
74
Oct ’25