Post

Replies

Boosts

Views

Activity

Reply to 4.3 A Spam Design
So, the previous app is no more available on the appstore ? Did the previous company provide to the new company an official letter certifying they have transferred all the rights on the app ? That could be a first step to try to prove reviewers that it is not a spam. But not sure it would be enough. Anyway, you could try.
Nov ’24
Reply to Unable to Create Files Adjacent to User-Selected File Due to App Sandbox Permissions
If I understand your question correctly, you can grant access to a directory as well. What @DTS Engineer said, plus… The way I do this is in 2 steps: A first NSPanel asks for Directory to select Then, in the openPanel.begin() closure I ask for saving the file Now, you will be able to save in this Directory let openPanel = NSOpenPanel() // to authorize access to directory openPanel.message = NSLocalizedString("Select Directory)", comment: "") openPanel.prompt = NSLocalizedString("Select", comment: "") openPanel.canChooseFiles = false openPanel.canChooseDirectories = true // To select directrory openPanel.canCreateDirectories = true openPanel.begin() { (result2) -> Void in if result2 == NSApplication.ModalResponse.OK { // When obtaining access through NSOpenPanel, you don't need to call startAccessingSecurityScopedResource() and stopAccessingSecurityScopedResource(), because the user explicitly granted you access for this session. let folderUrl = openPanel.url! // Create file let savePanel = NSSavePanel() savePanel.title = NSLocalizedString("File", comment: "") savePanel.nameFieldStringValue = "" // nothing here, will be entered by user savePanel.prompt = NSLocalizedString("Create", comment: "") savePanel.allowedFileTypes = ["XXXX"] // your type let fileManager = FileManager.default // Define new file name savePanel.begin() { (result) -> Void in if result == NSApplication.ModalResponse.OK { // write the file // save bookmarks } } Hope that helps.
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’24
Reply to Can someone help me fix this code.
You already posted the same question a few days ago and told it was solved. What is the new issue ? For the first error, let fetchedUser = try snapshot.data(as:User.self) I searched Firestore doc https://firebase.google.com/docs/firestore/solutions/swift-codable-data-mapping They show some sample code private func fetchBook(documentId: String) { let docRef = db.collection("books").document(documentId) docRef.getDocument(as: Book.self) { result in Book is Codable struct Book: Codable { @DocumentID var id: String? var title: String var numberOfPages: Int var author: String } Have you declared User as Codable ? See also this post: https://stackoverflow.com/questions/72103380/how-do-i-read-a-users-firestore-map-to-a-swift-dictionary For the second error, I think it was answered in reply to your previous post. remove coder parameter or call User with only coder parameter
Nov ’24
Reply to Leave the program
To leave the Apple Beta Software Program, you must first sign in, then click the Leave Program link. If you leave, you will stop receiving emails about the Apple Beta Software Program and will no longer be able to submit feedback with Feedback Assistant. See details here: https://beta.apple.com/en/unenroll-your-devices
Nov ’24
Reply to Most idiotic problem with assign value to value?
It would be so much easier if you provided simple and complete reproducible code… So I recreated a simple test code: enum ResultType { case success(formula: Float) case failure } struct CustomFunction { var formula: Float = 0.5 func checkFormula(_ formula: Float) -> ResultType { if formula > 0 { return .success(formula: formula) } return .failure } } struct CustomFormulaView: View { @Binding var function: CustomFunction @State var testFormula: Float = 0 var body: some View { HStack { Text(" test formula ") TextField("", value: $testFormula, format: .number) } .onChange(of: testFormula) { debugPrint("change of test formula: \(testFormula)") switch function.checkFormula(testFormula) { case .success(let formula): debugPrint("before Change: \(function.formula)") function.formula = formula // Nothing happens debugPrint("Test formula changed: \(testFormula)") debugPrint("set to success: \(formula)") debugPrint("what inside function? \(function.formula)") /* Task { //Generate Image testImage = await function.image( size: testImageSize), simulate: manager.finalSize) break debugPrint("test image updated for: \(function.formula)") } */ case .failure : print("failed") ; break } } } } struct ContentView: View { @State var function = CustomFunction() var body: some View { CustomFormulaView(function: $function) Text("\(function.formula)") } } And get what I understand is the expected result "change of test formula: 2.0" "before Change: 0.5" "Test formula changed: 2.0" "set to success: 2.0" "what inside function? 2.0"
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’24
Reply to Testing Right-to-Left localization in a macOS app
There seems to be some inconsistencies in RTL for buttons position: see for example: https://bugzilla.mozilla.org/show_bug.cgi?id=1633860 So, you should file a bug report. For numerals, have a look here: https://developer.apple.com/design/human-interface-guidelines/right-to-left https://stackoverflow.com/questions/52934621/localize-numeric-integers-for-different-languages
Nov ’24
Reply to App branding in navigation bar on every screen.
It does not seem compliant with App review guideline 5.6, Code of conduct: Customer trust is a cornerstone of the App ecosystem. Apps should never prey on users or attempt to rip off customers, trick them into making unwanted purchases, force them to share unnecessary data, …, or engage in any other manipulative practices within or outside of the app. Your Developer Program account will be terminated if you engage in activities or actions that are not in accordance with the Developer Code of Conduct. So, it is up to you to decide to take this risk on your account.
Topic: Design SubTopic: General
Nov ’24
Reply to 4.3 A Spam Design
So, the previous app is no more available on the appstore ? Did the previous company provide to the new company an official letter certifying they have transferred all the rights on the app ? That could be a first step to try to prove reviewers that it is not a spam. But not sure it would be enough. Anyway, you could try.
Replies
Boosts
Views
Activity
Nov ’24
Reply to nomor wa bws mobile adalah 083193926887
Surprising to see those automatic answers from App Store Connect Engineer. Really out of purpose. Looks like Apple intelligence does not apply yet to the forum 😉
Replies
Boosts
Views
Activity
Nov ’24
Reply to App Icon for a pre-order page
Could you clarify your question ? What icon do you want to upload ? Specific to each pre-order ? Where are those icons defined ?
Replies
Boosts
Views
Activity
Nov ’24
Reply to Bug temps d’écran partage familial
Bienvenue sur le forum. Vous devriez plutôt poster un Bug report ou poser la question sur la Communauté de support Apple: https://discussions.apple.com/welcome Le forum est fait pour le développement d'apps, pas pour des problèmes sur des apps existantes (sauf Xcode ou les autres outils de développement bien sûr).
Replies
Boosts
Views
Activity
Nov ’24
Reply to Unable to Create Files Adjacent to User-Selected File Due to App Sandbox Permissions
If I understand your question correctly, you can grant access to a directory as well. What @DTS Engineer said, plus… The way I do this is in 2 steps: A first NSPanel asks for Directory to select Then, in the openPanel.begin() closure I ask for saving the file Now, you will be able to save in this Directory let openPanel = NSOpenPanel() // to authorize access to directory openPanel.message = NSLocalizedString("Select Directory)", comment: "") openPanel.prompt = NSLocalizedString("Select", comment: "") openPanel.canChooseFiles = false openPanel.canChooseDirectories = true // To select directrory openPanel.canCreateDirectories = true openPanel.begin() { (result2) -> Void in if result2 == NSApplication.ModalResponse.OK { // When obtaining access through NSOpenPanel, you don't need to call startAccessingSecurityScopedResource() and stopAccessingSecurityScopedResource(), because the user explicitly granted you access for this session. let folderUrl = openPanel.url! // Create file let savePanel = NSSavePanel() savePanel.title = NSLocalizedString("File", comment: "") savePanel.nameFieldStringValue = "" // nothing here, will be entered by user savePanel.prompt = NSLocalizedString("Create", comment: "") savePanel.allowedFileTypes = ["XXXX"] // your type let fileManager = FileManager.default // Define new file name savePanel.begin() { (result) -> Void in if result == NSApplication.ModalResponse.OK { // write the file // save bookmarks } } Hope that helps.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Customizing Tables in SwiftUI
Is it for MacApp ? If so, look here: https://stackoverflow.com/questions/75444832/change-table-background-color-swiftui
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Nov ’24
Reply to Can someone help me fix this code.
You already posted the same question a few days ago and told it was solved. What is the new issue ? For the first error, let fetchedUser = try snapshot.data(as:User.self) I searched Firestore doc https://firebase.google.com/docs/firestore/solutions/swift-codable-data-mapping They show some sample code private func fetchBook(documentId: String) { let docRef = db.collection("books").document(documentId) docRef.getDocument(as: Book.self) { result in Book is Codable struct Book: Codable { @DocumentID var id: String? var title: String var numberOfPages: Int var author: String } Have you declared User as Codable ? See also this post: https://stackoverflow.com/questions/72103380/how-do-i-read-a-users-firestore-map-to-a-swift-dictionary For the second error, I think it was answered in reply to your previous post. remove coder parameter or call User with only coder parameter
Replies
Boosts
Views
Activity
Nov ’24
Reply to Leave the program
To leave the Apple Beta Software Program, you must first sign in, then click the Leave Program link. If you leave, you will stop receiving emails about the Apple Beta Software Program and will no longer be able to submit feedback with Feedback Assistant. See details here: https://beta.apple.com/en/unenroll-your-devices
Replies
Boosts
Views
Activity
Nov ’24
Reply to Apple Developer membership is the first step
I don't understand. If you want to register as an individual you have to give your name, not a pseudo. And if you distribute in Europe, your name and phone must appear on the Appstore (not Apple whim but European law).   What do you recommend me to do? I don't want to use my own name Forget Appstore distribution.
Replies
Boosts
Views
Activity
Nov ’24
Reply to App status - Ready for Distribution
Welcome to the forum. How long ago was it 3ready for distribution" ? It may take a few hours up to one day to appear. Is it a new app or an update ? Of course, you access Appstore from a country in which you have declared the app to be distributed (India I guess) ?
Replies
Boosts
Views
Activity
Nov ’24
Reply to Most idiotic problem with assign value to value?
Thanks for the feedback. Just shows you should post complete code. This would have been obvious and avoided we loos time to search.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Most idiotic problem with assign value to value?
It would be so much easier if you provided simple and complete reproducible code… So I recreated a simple test code: enum ResultType { case success(formula: Float) case failure } struct CustomFunction { var formula: Float = 0.5 func checkFormula(_ formula: Float) -> ResultType { if formula > 0 { return .success(formula: formula) } return .failure } } struct CustomFormulaView: View { @Binding var function: CustomFunction @State var testFormula: Float = 0 var body: some View { HStack { Text(" test formula ") TextField("", value: $testFormula, format: .number) } .onChange(of: testFormula) { debugPrint("change of test formula: \(testFormula)") switch function.checkFormula(testFormula) { case .success(let formula): debugPrint("before Change: \(function.formula)") function.formula = formula // Nothing happens debugPrint("Test formula changed: \(testFormula)") debugPrint("set to success: \(formula)") debugPrint("what inside function? \(function.formula)") /* Task { //Generate Image testImage = await function.image( size: testImageSize), simulate: manager.finalSize) break debugPrint("test image updated for: \(function.formula)") } */ case .failure : print("failed") ; break } } } } struct ContentView: View { @State var function = CustomFunction() var body: some View { CustomFormulaView(function: $function) Text("\(function.formula)") } } And get what I understand is the expected result "change of test formula: 2.0" "before Change: 0.5" "Test formula changed: 2.0" "set to success: 2.0" "what inside function? 2.0"
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Testing Right-to-Left localization in a macOS app
There seems to be some inconsistencies in RTL for buttons position: see for example: https://bugzilla.mozilla.org/show_bug.cgi?id=1633860 So, you should file a bug report. For numerals, have a look here: https://developer.apple.com/design/human-interface-guidelines/right-to-left https://stackoverflow.com/questions/52934621/localize-numeric-integers-for-different-languages
Replies
Boosts
Views
Activity
Nov ’24
Reply to App branding in navigation bar on every screen.
It does not seem compliant with App review guideline 5.6, Code of conduct: Customer trust is a cornerstone of the App ecosystem. Apps should never prey on users or attempt to rip off customers, trick them into making unwanted purchases, force them to share unnecessary data, …, or engage in any other manipulative practices within or outside of the app. Your Developer Program account will be terminated if you engage in activities or actions that are not in accordance with the Developer Code of Conduct. So, it is up to you to decide to take this risk on your account.
Topic: Design SubTopic: General
Replies
Boosts
Views
Activity
Nov ’24
Reply to unexpected nil
@cwt_ It is more a SwiftUI reporting issue than a Swift one. And we know SwiftUI is limited in its error reporting precision.
Replies
Boosts
Views
Activity
Nov ’24