I understand, thank you! This is different from other models I'm used to where future whether is an offset from current time. This is equally sensible, just didn't occur to me.
Post
Replies
Boosts
Views
Activity
To be clear, I'm setting startDate and endDate like this:
let startDate = Date()
let endDate = Calendar.current.date(byAdding: .weekOfYear, value: 1, to: startDate)
Hi, thanks for your response. My question is not whether the date is at the start of the hour.
Shouldn’t the hourly be times increasing in one hour increments from startDate?
I'm seeing times that unconditionally start at 10PM. If I run a query at 7AM I expect the hourly forecast entries to be 8AM, 9AM, etc.
// at 7AM after conversion I expect date to indicate 8AM
let utc = hourly.forecast[0].date
It appears that I am doing something wrong in my conversion Could you please provide a code fragment that would yield dates as I describe? Thanks.
Beuller?
The feedback ID is FB10566496.
Thanks,
Cliff
When configuring the app id on the developer site there are two tabs: "Capabilities" and "App Services". Ensure that WeatherKit is enabled in both of these.
There is no issue with visualBounds. My entity had an unexpected child that was throwing off the dimension caculation.
Deleting this question due to a mistake I was making.
That's great, arthurfromberlin. Thank you!
dup response due to forum web site weirdness -
Thank you. It doesn't center the object but with your help I'm closer to that goal. Thanks again!
Thanks for the explanation, gchiste.
Would it be possible to provide some example code to determine the target transform? While I understand your answer, I'm flailing a little trying to make it work.
Thanks again,
Spiff
The complete answer is that ARView has a cameraMode property which is equivalent to the argument in the initializer.
arView.cameraMode = .nonAr // for example
How I missed this is beyond me :-)
Although I marked this as the correct answer it is in fact incomplete. This changes the background but the camera is in fact still active, while you move the camera, the relative orientation of the device changes.
This can be achieved by setting the background in the environment:
// disable camera
arView.environment.background = .color(.white)
// enable camera
arView.environment.background = .cameraFeed()