Post

Replies

Boosts

Views

Activity

Reply to App Rejeitado - Descrição do bug: uma tela em branco foi exibida na inicialização
Do you observe the problem yourself ? Is it UIKit or SwiftUI ? A possible reason is that you have some code in appDelegate that takes too long (for instance because of betwork access). You should move this code out of appDelegate. Observa o problema pessoalmente? É o UIKit ou o SwiftUI? Uma possível razão é o facto de ter algum código na appDelegate que demora demasiado tempo (por exemplo, devido ao acesso ao betwork). Deveria retirar esse código da appDelegate. Podes mostrar o teu código appDelegate?
Jul ’24
Reply to [SwiftUI] When to use closures vs equals for variable assignment?
It is not a convention, it is a major difference. The difference is that computed var (first option) is evaluated each time the var is accessed. So it can change on the fly. The second option is initialised once for all. Consider the simple case: var myVar: Int { (0...10).randomElement()! } var myVar2 = (0...10).randomElement()! for _ in 0...3 { print(myVar, myVar2) } You get: 5 4 1 4 4 4 7 4
Jul ’24
Reply to Incorrect JSON Format with JSONEncoder
print(encoded) returns 110 bytes. When I test it with the following code, let account = AccountCreationData(name: "name", email: "email", phone: "phone", password: "password") if let encoded = try? JSONEncoder().encode(account) { print("encoded", encoded) print("content", String(data: encoded, encoding: .utf8)!) // To see the content of encoding } else { print("Failed to encode request") } I get encoded 69 bytes // (the string 'name: "name", email: "email", phone: "phone", password: "password"' is 66 bytes) content {"email":"email","password":"password","name":"name","phone":"phone"} Could you print the same log on your side ? And please show how you call createAccount. You may have a problem there. Also, why do you dispatch here: DispatchQueue.main.async { completion(resData) } } catch let jsonError as NSError {
Topic: App & System Services SubTopic: General Tags:
Jul ’24
Reply to App rejected as spam
Read the guidelines. Spam may be because your app falls into an overcrowded category without enough innovative features. Dating apps are just such a category. 4.3 Spam (b) Also avoid piling on to a category that is already saturated; the App Store has enough fart, burp, flashlight, fortune telling, dating, drinking games, and Kama Sutra apps, etc. already. We will reject these apps unless they provide a unique, high-quality experience. Spamming the store may lead to your removal from the Apple Developer Program. So, the only thing you can do is to add comments to reviewer explaining how your app provides this unique experience.
Jul ’24
Reply to App Rejeitado - Descrição do bug: uma tela em branco foi exibida na inicialização
Do you observe the problem yourself ? Is it UIKit or SwiftUI ? A possible reason is that you have some code in appDelegate that takes too long (for instance because of betwork access). You should move this code out of appDelegate. Observa o problema pessoalmente? É o UIKit ou o SwiftUI? Uma possível razão é o facto de ter algum código na appDelegate que demora demasiado tempo (por exemplo, devido ao acesso ao betwork). Deveria retirar esse código da appDelegate. Podes mostrar o teu código appDelegate?
Replies
Boosts
Views
Activity
Jul ’24
Reply to [SwiftUI] When to use closures vs equals for variable assignment?
It is not a convention, it is a major difference. The difference is that computed var (first option) is evaluated each time the var is accessed. So it can change on the fly. The second option is initialised once for all. Consider the simple case: var myVar: Int { (0...10).randomElement()! } var myVar2 = (0...10).randomElement()! for _ in 0...3 { print(myVar, myVar2) } You get: 5 4 1 4 4 4 7 4
Replies
Boosts
Views
Activity
Jul ’24
Reply to iPhone mirroring accessibility feature needed
You should file a suggestion in the feedback assistant. Have you tried to use the keyboard vuzualizer on the Mac ? That should provide most of what you are looking for, without occupying space on the iPhone mirrored screen. Best of both.
Replies
Boosts
Views
Activity
Jul ’24
Reply to SwiftUI preview with different @AppStorage values
@Jackson-G has provided an interesting answer. But why do you want to do it in Preview and not in simulator. At the risk of pushing preview beyond its limits.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Will this app's plan pass the review?
You have to check guideline 1.1.4 on Objectionable Content. You should probably indicate in the comments (if that's the case), that all the cafes you reference have signed a code of conduit and hence you meet this guideline.
Replies
Boosts
Views
Activity
Jul ’24
Reply to 4.1.0 Guideline documentation
IMHO, an agreement between you and the company, certified by a notary should be enough.
Replies
Boosts
Views
Activity
Jul ’24
Reply to Incorrect JSON Format with JSONEncoder
print(encoded) returns 110 bytes. When I test it with the following code, let account = AccountCreationData(name: "name", email: "email", phone: "phone", password: "password") if let encoded = try? JSONEncoder().encode(account) { print("encoded", encoded) print("content", String(data: encoded, encoding: .utf8)!) // To see the content of encoding } else { print("Failed to encode request") } I get encoded 69 bytes // (the string 'name: "name", email: "email", phone: "phone", password: "password"' is 66 bytes) content {"email":"email","password":"password","name":"name","phone":"phone"} Could you print the same log on your side ? And please show how you call createAccount. You may have a problem there. Also, why do you dispatch here: DispatchQueue.main.async { completion(resData) } } catch let jsonError as NSError {
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Incorrect JSON Format with JSONEncoder
Could you show how you defined account (its content) ? And print a log and report what you get: guard let encoded = try? JSONEncoder().encode(account) else { print("Failed to encode request") return } request.httpBody = encoded print("encoded", encoded)
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Why does break statement not run in switch's default case?
In such a case, I just call EmptyView() in the default statement.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to App rejected as spam
Read the guidelines. Spam may be because your app falls into an overcrowded category without enough innovative features. Dating apps are just such a category. 4.3 Spam (b) Also avoid piling on to a category that is already saturated; the App Store has enough fart, burp, flashlight, fortune telling, dating, drinking games, and Kama Sutra apps, etc. already. We will reject these apps unless they provide a unique, high-quality experience. Spamming the store may lead to your removal from the Apple Developer Program. So, the only thing you can do is to add comments to reviewer explaining how your app provides this unique experience.
Replies
Boosts
Views
Activity
Jul ’24
Reply to Inconsistencies between mail notification from forum and forum content
OK, that's the reason probably, capability to revert an undue recommendation.
Replies
Boosts
Views
Activity
Jul ’24
Reply to "Sensitive language" errors
If you write ß instead of beta, would it be accepted ? Or just replace 'developer beta' by 'developer version' too see what happens. In fact, there are some strict confidentiality rules around betas.
Replies
Boosts
Views
Activity
Jul ’24
Reply to Feedback app Broken!
It works for me, so FB is not broken. Which browser are you using ? Did you try with another browser ? Did you try rebooting the Mac or calling from iPhone ?
Replies
Boosts
Views
Activity
Jul ’24
Reply to Unable to Display Text Fully in Text() SwiftUI
Effectively, it does not display the circle below g: Adding a baseline offset makes it work: struct ContentView: View { var body: some View { Text("[ɡ̠̥ɑʔ͡t]") .baselineOffset(10) .font(.title) .fontWeight(.semibold) .padding() } } I did the test with Xcode 16.0ß2.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Unable to Display Text Fully in Text() SwiftUI
Thanks, but I would need to see the part of code with Text("") which does not display correctly (with the exact string with large height).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24