Posts

Post marked as solved
2 Replies
1.2k Views
Until recently, I was unable to use WeatherKit to obtain historical Daily data. Now, it appears that I can retrieve Daily and Hourly historical data, but the returned data is limited to a ten day period. No matter what start and end dates are included, I get data from start date to 10 days later (assuming the end date was more than 10 days after the start). Is this a permanent restriction? Example: let historicalData = try await weatherService.weather(for: location, including: .daily(startDate: startDate, endDate: endDate))
Posted
by JohnOfSF.
Last updated
.
Post not yet marked as solved
0 Replies
439 Views
I'm struggling with using Core Data with the CloudKit PUBLIC database which was covered in talks in WWDC20. When I look for the sample code for CoreDataCloudKitDemo I can only find the WWDC21 code which is for Sharing private records - not the setup for the Public database. The WWDC20 slides use the same name for the sample code. Where can I find the sample code for Core Data and the Public Database (from WWDC20)? Thanks.
Posted
by JohnOfSF.
Last updated
.
Post not yet marked as solved
3 Replies
8.8k Views
I would like to use the AirPods for some accessibility features but cannot find any reference to an available api. Is access to the hardware available?
Posted
by JohnOfSF.
Last updated
.
Post not yet marked as solved
2 Replies
1.6k Views
I have a SwiftUI app that includes a map with annotations and an overlay of polylines on highways. I use Core Data to store Waypoint structs to configure the polylines. Multiple Waypoints make a Trip. The app is the basic Master/Detail style with a list of trips and a DetailView that displays the map with the overlay. As a part of that process I calculate the time and distance for each segment (between Waypoints). All of this works as expected with one really strange problem. When I start the app, the first Trip is displayed correctly with the correct time and distance. However, when clicking on a second Trip the makeUIView function of the UIViewRepresentable is called multiple times - even more strangely, five times. That obviously wastes internet resources and it makes the time and distance incorrect. Now if that is not strange enough, when clicking on a third Trip, the information is correct. In fact, every other Trip is correct - it does not matter which is first, every other is correct with the intervening ones all incorrect. My first thought was that I had some strange toggle somewhere, but I do not. I cannot find anything that should require the makeUIView to be called five times and certainly not every other time. I have attached the MapKitMakeUIViewQuestion.txt code for the DetailView: Just as an aside - I published this app to the App Store some time ago (and several versions of iOS and Xcode ago) and I believe the app behaved as expected at that time. Any guidance would be appreciated. Xcode 12.5 iOS 14.5
Posted
by JohnOfSF.
Last updated
.
Post not yet marked as solved
0 Replies
439 Views
I have an iOS App that I have converted with Catalyst to a MacOS App. I created an archive, validated it and posted it on App Store Connect. In Organizer I selected Distribute App, then chose Developer ID, then exported the notorized app. I sent the .app file to a user who is in my tester group on app store connect but they are not able to open the app. I did add the iMac of the user to my devices on App Store Connect. This is the error: You do not have permission to open the app "appname" I thought that might be a local issue, so I looked at the file permissions and they do indeed say read,write permission. I hope I'm missing something simple here. Any guidance would be appreciated. Xcode 12.4, iOS 14.2, macOS Big Sur 11.2
Posted
by JohnOfSF.
Last updated
.