Post

Replies

Boosts

Views

Activity

Reply to Launch argument "-AppleLocale en_US" doesn't change measurement system(units) to "US" on MacOs
Quinn, thank you for reply! I've just tried AppleLocale en_US -AppleMetricUnits false/ -AppleMeasurementUnits Inches but unfortunately it doesn't help. I've updated my example project at https://github.com/yuri-qualtie/UseMetricSystemDemo in case you want take a look. We definitely won't use these arguments in production code. It's just for UITests I put some simple code example with print but actually I test in the example App - https://github.com/yuri-qualtie/UseMetricSystemDemo by following code: struct ContentView: View {     var body: some View {         VStack {             Text("Current Locale: \(Locale.current.regionCode!)")             Text("Curren Locale uses metric system: " + "\(Locale.current.usesMetricSystem)")                 .padding()             Text("US Locale: \(Locale(identifier: "en_US").regionCode!)")             Text("US uses metric system: " + "\(Locale(identifier: "en_US").usesMetricSystem)")                 .padding()         }     } } So I always see: Current Locale: US Curren Locale uses metric system: true US Locale: US US uses metric system: false
Apr ’21
Reply to Launch argument "-AppleLocale en_US" doesn't change measurement system(units) to "US" on MacOs
My region - Russia and Measurement units: Metric. I’m testing with Xcode 12.4 on macOS 11.2.3 with my Mac’s region set to United Kingdom (I also tried Australia, just in case it was specific to the oddball UK measurement system). Could you please click "Advanced..." at Language & Region Preferences and change Measurement units to "Metric". It looks like that AppleLocale or AppleMetricUnits doesn't override measurement units
Apr ’21
Reply to .accessibilityElement(children: .contain) produces memory leaks in UITests
Hello Nathan, Thank you for investigation and response. I'm glad that my report helped to detect the issue. We as a first adopters of SwiftUI are really inspired to make it better and help to overcome young diseases. Good news that macOS Monterey (12.0) doesn't have this issue. We will update our development and CI instances to Monterey when it is officially released. Unfortunately, we don't want to increase minimum requirements for our customers so we are definitely interested in a workaround. I tried that you suggested for var body: some View of PickerWithBindingView but still have memory leaks. My steps: Deleted all the .containerAccessibility from MainView.swift Added in PickerWithBindingView.swift:         VStack { ..... previous body         }         .accessibilityElement(children: .contain)         .accessibilityIdentifier("picker-with-binding-view") I pushed it to separate branch: https://github.com/yuri-qualtie/MemoryLeaks/tree/try-workaround Could you please try? Maybe I misunderstood your suggestion for workaround. Thanks, Yuri-
Sep ’21
Reply to testmanagerd constantly requests password to enable UI Automation on macOS Monterey
I opened TSI for the issue and got reply from Apple DTS Engineer that resolves my issue: The automationmodetool command line tool allows you to manage UI automation security preferences, see its man page for details. To resolve your issue, run the following command as a administrator on your machine:         automationmodetool enable-automationmode-without-authentication To disable this mode, run the following command as a administrator on your machine:       automationmodetool disable-automationmode-without-authentication Note that the man page shows leading dash in front of each of the above two commands, it is a bug. Please disregard it and use the commands as described above.
Nov ’21