Hello. I took a closer look at the data I'm getting back for hourly forecasts and I'm baffled by results I'm seeing.
For example, it's Dec 19, 2022 8:00am PT and I'm asking for the weather for Orchard Park NY (lat 42.766437 long -78.743855) for Dec 23, 2022. The daily forecast tells me they're expected to have 5.9" of snow. However, the hourly forecast with the most snow that day is reported as 0.071" (1.8mm). The Apple Weather app on iOS shows that hour as having 0.6".
I wrote a 'for' loop to print the results of my call to WeatherService.shared.weather.
print(oneHour.precipitationAmount.formatted())
print(oneHour.precipitationAmount.description)
print(oneHour.precipitationAmount.unit)
print(oneHour.precipitationAmount.value)
0.071 in
1.8 mm
<_NSStatic_NSUnitLength: 0x2010b0178> mm
1.8
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
I'm using UICalendarView in my SwiftUI app. Inside of my func calendarView() I'm specifying emojis for decorations for certain days and they're showing up just fine. The problem is that VoiceOver completely ignores the decorations. If I touch a day it says the date and "button", which is exactly what I want. I've tried adding all of the accessibility items below but none of them cause VoiceOver to mention the day's decoration.
return .customView {
let emoji = UILabel()
emoji.text = foundEvent.emoji
emoji.isAccessibilityElement = true
emoji.accessibilityIdentifier = "identifier"
emoji.accessibilityTraits = .staticText
emoji.accessibilityLabel = "I like turtles."
emoji.accessibilityValue = foundEvent.emoji
emoji.accessibilityHint = "I also like turtles."
return emoji
}
Version 14.0 beta 4 (14A5284g)
This is all referring to the simulator.
When I run the Shortcuts app my phrase is properly shown for my app and the app's name is correctly populated.
However, when I try to add a SiriTipView the same phrase shows the application name as ${APPLICATIONNAME}. I changed the first letter of the phrase and verified the change showed up in the Shortcuts app and my app tip.
I'm not sure if I'm doing something wrong or should file feedback instead.