Post

Replies

Boosts

Views

Activity

Force color scheme at the press of a button
This is once again about that Lunch Card app. There's a section in my app's settings that controls the appearance - color scheme, if you will - of the whole app. The three options are System Default Light Dark The picker is set up, and it works as normal, but what would I specify the action of these buttons to be to force a certain color scheme, whether that be dark, light, or auto. Here's the code for where the picker is: struct SettingsView: View {     @State private var selectedAppearance = 1     var body: some View { // ... Picker(selection: $selectedAppearance, label: Text("Appearance")) { Button(action: { // Change app color scheme to be auto }) { Text("System Default") }.tag(1) Button(action: { // Change app color scheme to be light }) { Text("Light") }.tag(2) Button(action: { // Change app color scheme to be dark }) { Text("Dark") }.tag(3) } // ... }
9
0
6.9k
Jan ’21
Misclicked on new version of app...can't delete
Lunch Card - https://apps.apple.com/us/app/lunch-card-id-card-manager/id1546901593 is finally out. But while in App Store Connect, I misclicked while trying to create a macOS version of the app and clicked tvOS. Now, I can't delete it. It gives me the option, but gives me an error. It literally just says: An error has occurred. Try again later. After trying to Google this problem, it didn't come to any avail. Now I'm stuck with a tvOS version of my app that I have no plans to develop (because who needs to scan an ID card on a TV?).
5
0
1.4k
Feb ’21