Post

Replies

Boosts

Views

Activity

Hourly precipitation amounts seem drastically low
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
9
0
2.4k
Dec ’22
VoiceOver ignoring UICalendarView day decorations
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       }
1
1
1.3k
Sep ’22
SiriTipView showing ${APPLICATIONNAME} instead of my app's name.
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.
3
1
2k
Aug ’22
The onAppear for the wrong tab is being executed
I was seeing some behavior I couldn't understand with onAppear and my tabs (Xcode 12 beta 3). I wrote a quick project with two tabs to test. Here's tab1 (tab2 is the same).    var body: some View {     NavigationView {     Text("Tab1")     }     .onAppear() {       let datefor = DateFormatter()       datefor.timeStyle = .medium       print("onAppear tab1 \(datefor.string(from: Date()))")     }     .onDisappear() {       print("onDisappear tab1")     }   } At app launch: onAppear tab1 10:29:18 AM onAppear tab2 10:29:18 AM Touch tab2: onDisappear tab1 onDisappear tab2 onAppear tab2 10:29:42 AM onAppear tab1 10:29:42 AM Now this is where it gets interesting. Touch tab1 and the wrong onAppear gets called: onDisappear tab2 onAppear tab2 10:30:10 AM Touch tab2 and the same thing happens: onDisappear tab1 onAppear tab1 10:30:46 AM
1
0
1.1k
Aug ’20