Post

Replies

Boosts

Views

Activity

Reply to Can't get a simple network call working. Novice developer.
init?(string: String) returns an optional value. guard let url = URL(string: "https://...") else { return } let request = URLRequest(url: url) URLSession.shared.dataTask(with: request) or guard let url = URL(string: "https://...") else { return } do { let (data, _) = try await URLSession.shared.data(from: url) } catch { }
Topic: Design SubTopic: General
Sep ’25
Reply to Am I allowed to use FFMPEG and FFPROBE binaries in Mac App Store?
I kind of remember that I had several applications running an FFMPEG command-line app submitted to Mac App Store some 14 years ago. In the meantime, you are not specific about your development platform, making ambiguous statements like "MacOs" and "AppStore." So which is it? Is it an iOS app or macOS application? Anyway, if you are not sure if your macOS submission does not abide by Mac App Store review guidelines, you can have your users download the command-line tool and install it on their own. I would search for 'DVD rip' at Mac App Store.
Aug ’25
Reply to Dealing with IAP Purchase Restore
Thank you, App Review and Apple Appeals Board. The app in question has been approved. I'm taken by a surprise because there was a bitter time when Appeals Board used to take the side of the reviewer without questions and because I was ready to abandon this software submission. I don't know if the reviewer has changed his or her mind this time or if the Appeals Board has made their decision for me.
Aug ’25
Reply to Dealing with IAP Purchase Restore
Sure, App Review. I thank you. I don't have a problem and will submit changes if you kindly tell me that there may be a situation where they need to restore whatever they need without history of purchases. For now, I don't see it. And the reviewer or the appeals board doesn't give me a reason why they need to restore what. Again, I don't know what they are trying to restore.
Aug ’25
Reply to how to change the textfield background on click focused
The background color is there. But you are not giving much room around the TextField guy to show the focus effect. I would use the border guy instead of the background guy. struct ContentView: View { @FocusState private var focus: Bool @State private var text: String = "" var body: some View { ZStack { VStack { TextField("Enter phone number", text: $text) .focused($focus) .font(.system(size: 36.0)) .border(focus ? Color.yellow : Color.clear) .textFieldStyle(.roundedBorder) .padding() } } } } or struct ContentView: View { @FocusState private var focus: Bool @State private var text: String = "" var body: some View { ZStack { VStack { TextField("Enter phone number", text: $text) .focused($focus) .font(.system(size: 36.0)) .textFieldStyle(.roundedBorder) .padding() .background(focus ? .blue : .clear) } } } }
Topic: UI Frameworks SubTopic: SwiftUI
Jul ’25
Reply to Can't get a simple network call working. Novice developer.
init?(string: String) returns an optional value. guard let url = URL(string: "https://...") else { return } let request = URLRequest(url: url) URLSession.shared.dataTask(with: request) or guard let url = URL(string: "https://...") else { return } do { let (data, _) = try await URLSession.shared.data(from: url) } catch { }
Topic: Design SubTopic: General
Replies
Boosts
Views
Activity
Sep ’25
Reply to Am I allowed to use FFMPEG and FFPROBE binaries in Mac App Store?
I kind of remember that I had several applications running an FFMPEG command-line app submitted to Mac App Store some 14 years ago. In the meantime, you are not specific about your development platform, making ambiguous statements like "MacOs" and "AppStore." So which is it? Is it an iOS app or macOS application? Anyway, if you are not sure if your macOS submission does not abide by Mac App Store review guidelines, you can have your users download the command-line tool and install it on their own. I would search for 'DVD rip' at Mac App Store.
Replies
Boosts
Views
Activity
Aug ’25
Reply to Dealing with IAP Purchase Restore
Thank you, App Review and Apple Appeals Board. The app in question has been approved. I'm taken by a surprise because there was a bitter time when Appeals Board used to take the side of the reviewer without questions and because I was ready to abandon this software submission. I don't know if the reviewer has changed his or her mind this time or if the Appeals Board has made their decision for me.
Replies
Boosts
Views
Activity
Aug ’25
Reply to Dealing with IAP Purchase Restore
Sure, App Review. I thank you. I don't have a problem and will submit changes if you kindly tell me that there may be a situation where they need to restore whatever they need without history of purchases. For now, I don't see it. And the reviewer or the appeals board doesn't give me a reason why they need to restore what. Again, I don't know what they are trying to restore.
Replies
Boosts
Views
Activity
Aug ’25
Reply to how to change the textfield background on click focused
The background color is there. But you are not giving much room around the TextField guy to show the focus effect. I would use the border guy instead of the background guy. struct ContentView: View { @FocusState private var focus: Bool @State private var text: String = "" var body: some View { ZStack { VStack { TextField("Enter phone number", text: $text) .focused($focus) .font(.system(size: 36.0)) .border(focus ? Color.yellow : Color.clear) .textFieldStyle(.roundedBorder) .padding() } } } } or struct ContentView: View { @FocusState private var focus: Bool @State private var text: String = "" var body: some View { ZStack { VStack { TextField("Enter phone number", text: $text) .focused($focus) .font(.system(size: 36.0)) .textFieldStyle(.roundedBorder) .padding() .background(focus ? .blue : .clear) } } } }
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jul ’25