Post

Replies

Boosts

Views

Activity

Reply to 0 of 3 App Previews
0 of 3 App Previews What do you mean? You have zero previews ? What is the rejection message you received ? The purpose of the screenshots is to provide screenshots (in the different device format required) to help user understand what your app does for him/her. It is not a tutorial even less a user manual. No need for video.   I'm unsure how to proceed with this. If I understand correctly your question, in simulator (for each device size that is required, for every language you support) do a screen capture (ctrl-S)
Mar ’24
Reply to How to using SwiftUI, develop a complex layout page for a social media app?
Your question is a bit general, so just some general comments. In SwiftUI, you should decompose your complex page in views Each subview being a logical block Several subviews being included in a VStack or HStack For the layout itself, it is (IMHO) one of the limits of SwiftUI: you have not the constraints manager as with UIKit. For data flow, sharing information either with .environment or State / Binding User interaction: what is your point ? Is it a need to focus on next item to enter (if so, use focusStats) Provide code snippets and explanations That's not how the fforum work. You don't ask others to do somethging. You should show what you did so far and explain what is not working as expected.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’24
Reply to Changing background color of a textview
You have to: declare fondbleu in a color asset catalog set the stack background: VStack { HStack { TextField("mot", text:$tfMot) .dynamicTypeSize(.xLarge) .disabled(true) .background(Color("fondbleu")) TextField("orthoAlt", text:$tfOrthoAlt, axis: .vertical) .dynamicTypeSize(.small) .background(Color("fondbleu")) .disabled(true) } TextField("Définition", text:$tfDefinition, axis: .vertical) .background(Color("fondbleu")) .disabled(true) } .background(Color("fondbleu"))
Mar ’24
Reply to Cannot cancel a submission. "You have an App Review submission cancellation in progress. You can resubmit items for review again after the cancellation is complete."
I contacted the app review team but have not got reply so far. How did you contact them (in appstore connect ?) is so, they don't usually answer. You'd better contact support. I once had a similar problem after cancelling a submission. What I did (I don't know if you can): proceeded to complete the initial submission immediately submit a new version It is not ideal as that leaves a bugged version, but I did not find another way at the time. Now, I never cancel submission anymore.
Mar ’24
Reply to when I add new line on my code, it stop responding showing rainbow loading
Hard to say with so limited information. Could you show the context ? is it SwiftUI code, with active preview ? Does it happen when you add code anywhere in the project or at some specific place ? if at specific place, please show the code. Does it occur for whatever code you insert or only for some specific code ? if specific, please show. which version of Xcode, MacOS ?
Mar ’24
Reply to Cross Platform IOS (UIPasteboard) vs MacOS (NSPasteboard) compatibility
I did it differently to be able to run on iOS or macOS, testing for OS type. Xcode 15.0 and 15.3. @eskimo: is it useless ? #if os(macOS) typealias XPasteboard = NSPasteboard #else typealias XPasteboard = UIPasteboard #endif extension XPasteboard { func copyString(_ text: String) { #if os(macOS) self.clearContents() self.setString(text, forType: .string) #else self.string = text #endif } func copyImage(_ image: Data) { #if os(macOS) self.clearContents() self.setData(image, forType: .png) #else self.image = UIImage(data: image) #endif } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’24
Reply to 4.3.0 Design: Spam
The fact that an app was accepted in the past is not a guarantee it will be in the future. It could be you passed through 2 years ago but not this time. Or did you share some information about your account ? What type of an app is it ? Have you checked for similar apps in the store ? My advice: add a note to reviewer like this: this is an update of an app present in the store for 2 years. The only changes in the new version are …………… and it is your genuine code. Good luck.
Mar ’24
Reply to Xcode with an Error
Welcome to the forum. When you post code, you should post more code and be clear in describing the issue (what works, what does not work). That will help explain. This works in playground (I renamed text to avoid potential conflicts). let number = 120 print(number.isMultiple(of: 3)) func printText(){ let number = 120 print("is multiple", number.isMultiple(of: 3)) } printText() That's for pure playground. But in an app (including playground app), you cannot call a function directly at the top level (that's what the error says). You have to call the function from within a class, for instance from the action of a button. If you show complete code, it will be possible to tell you exactly where.
Mar ’24
Reply to Online courses for XCODE (maybe swift coding too)
I would recommend to first start with Apple (free) course. That will provide you the basics and should be enough to start developing your apps. The rest is largely a question of practice. You should have to decide if you want to learn UIKit or SwiftUI. SwiftUI is probably better suited if you have not very specific needs for your app. A good starting point: https://developer.apple.com/tutorials/app-dev-training/getting-started-with-scrumdinger You find a lot in Apple's Library to learn Swift:
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’24
Reply to Language guide for Swift 5.9
Yes, don't be afraid, there are limited differences and only for advanced functions. But there is upward compatibility.. You can find Swift 5.7 in Books. And if you want to see the differences in Swift 5.10, have a look here: https://github.com/apple/swift/blob/main/CHANGELOG.md
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’24
Reply to Sales in Mac App Store (MAS) down since March 2024
Have you still some sales in China or all chinese sales have stopped ? Regulation changes regularly in China to control more and more strictly apps business. https://www.reuters.com/world/china/china-enforces-new-filing-rules-smartphone-app-stores-2023-09-27/#:~:text=The%20country%20now%20requires%20mobile,need%20to%20be%20taken%20down. : This article explains the Apple could be forced to remove many apps from its Chinese appstore. Is it your case ? have you a mean to ask someone in China if your app is still accessible ?
Mar ’24
Reply to Delay Issue with onChange Modifier in SwiftUI
You cannot rely on some code being executed fast enough. You have to change some design. Please show complete code so that we can replay and understand exactly what's happening.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Reorder multiple items in list - SwiftUI
I observe the same. But apparently, some have it working: https://developer.apple.com/forums/thread/656002
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to 0 of 3 App Previews
0 of 3 App Previews What do you mean? You have zero previews ? What is the rejection message you received ? The purpose of the screenshots is to provide screenshots (in the different device format required) to help user understand what your app does for him/her. It is not a tutorial even less a user manual. No need for video.   I'm unsure how to proceed with this. If I understand correctly your question, in simulator (for each device size that is required, for every language you support) do a screen capture (ctrl-S)
Replies
Boosts
Views
Activity
Mar ’24
Reply to How to using SwiftUI, develop a complex layout page for a social media app?
Your question is a bit general, so just some general comments. In SwiftUI, you should decompose your complex page in views Each subview being a logical block Several subviews being included in a VStack or HStack For the layout itself, it is (IMHO) one of the limits of SwiftUI: you have not the constraints manager as with UIKit. For data flow, sharing information either with .environment or State / Binding User interaction: what is your point ? Is it a need to focus on next item to enter (if so, use focusStats) Provide code snippets and explanations That's not how the fforum work. You don't ask others to do somethging. You should show what you did so far and explain what is not working as expected.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Changing background color of a textview
You have to: declare fondbleu in a color asset catalog set the stack background: VStack { HStack { TextField("mot", text:$tfMot) .dynamicTypeSize(.xLarge) .disabled(true) .background(Color("fondbleu")) TextField("orthoAlt", text:$tfOrthoAlt, axis: .vertical) .dynamicTypeSize(.small) .background(Color("fondbleu")) .disabled(true) } TextField("Définition", text:$tfDefinition, axis: .vertical) .background(Color("fondbleu")) .disabled(true) } .background(Color("fondbleu"))
Replies
Boosts
Views
Activity
Mar ’24
Reply to Cannot cancel a submission. "You have an App Review submission cancellation in progress. You can resubmit items for review again after the cancellation is complete."
I contacted the app review team but have not got reply so far. How did you contact them (in appstore connect ?) is so, they don't usually answer. You'd better contact support. I once had a similar problem after cancelling a submission. What I did (I don't know if you can): proceeded to complete the initial submission immediately submit a new version It is not ideal as that leaves a bugged version, but I did not find another way at the time. Now, I never cancel submission anymore.
Replies
Boosts
Views
Activity
Mar ’24
Reply to when I add new line on my code, it stop responding showing rainbow loading
Hard to say with so limited information. Could you show the context ? is it SwiftUI code, with active preview ? Does it happen when you add code anywhere in the project or at some specific place ? if at specific place, please show the code. Does it occur for whatever code you insert or only for some specific code ? if specific, please show. which version of Xcode, MacOS ?
Replies
Boosts
Views
Activity
Mar ’24
Reply to Cross Platform IOS (UIPasteboard) vs MacOS (NSPasteboard) compatibility
I did it differently to be able to run on iOS or macOS, testing for OS type. Xcode 15.0 and 15.3. @eskimo: is it useless ? #if os(macOS) typealias XPasteboard = NSPasteboard #else typealias XPasteboard = UIPasteboard #endif extension XPasteboard { func copyString(_ text: String) { #if os(macOS) self.clearContents() self.setString(text, forType: .string) #else self.string = text #endif } func copyImage(_ image: Data) { #if os(macOS) self.clearContents() self.setData(image, forType: .png) #else self.image = UIImage(data: image) #endif } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to 4.3.0 Design: Spam
The fact that an app was accepted in the past is not a guarantee it will be in the future. It could be you passed through 2 years ago but not this time. Or did you share some information about your account ? What type of an app is it ? Have you checked for similar apps in the store ? My advice: add a note to reviewer like this: this is an update of an app present in the store for 2 years. The only changes in the new version are …………… and it is your genuine code. Good luck.
Replies
Boosts
Views
Activity
Mar ’24
Reply to How keep NSWindow always on top other windows?
Did you consider using hud (head up display) window ? @IBOutlet fileprivate weak var hud : NSPanel!
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Apple watch development
What is your question to other developers ? That seems to be just a statement, not a post for the developers' forum. have a good day.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Xcode with an Error
Welcome to the forum. When you post code, you should post more code and be clear in describing the issue (what works, what does not work). That will help explain. This works in playground (I renamed text to avoid potential conflicts). let number = 120 print(number.isMultiple(of: 3)) func printText(){ let number = 120 print("is multiple", number.isMultiple(of: 3)) } printText() That's for pure playground. But in an app (including playground app), you cannot call a function directly at the top level (that's what the error says). You have to call the function from within a class, for instance from the action of a button. If you show complete code, it will be possible to tell you exactly where.
Replies
Boosts
Views
Activity
Mar ’24
Reply to Online courses for XCODE (maybe swift coding too)
I would recommend to first start with Apple (free) course. That will provide you the basics and should be enough to start developing your apps. The rest is largely a question of practice. You should have to decide if you want to learn UIKit or SwiftUI. SwiftUI is probably better suited if you have not very specific needs for your app. A good starting point: https://developer.apple.com/tutorials/app-dev-training/getting-started-with-scrumdinger You find a lot in Apple's Library to learn Swift:
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Language guide for Swift 5.9
Yes, don't be afraid, there are limited differences and only for advanced functions. But there is upward compatibility.. You can find Swift 5.7 in Books. And if you want to see the differences in Swift 5.10, have a look here: https://github.com/apple/swift/blob/main/CHANGELOG.md
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to Sales in Mac App Store (MAS) down since March 2024
Have you still some sales in China or all chinese sales have stopped ? Regulation changes regularly in China to control more and more strictly apps business. https://www.reuters.com/world/china/china-enforces-new-filing-rules-smartphone-app-stores-2023-09-27/#:~:text=The%20country%20now%20requires%20mobile,need%20to%20be%20taken%20down. : This article explains the Apple could be forced to remove many apps from its Chinese appstore. Is it your case ? have you a mean to ask someone in China if your app is still accessible ?
Replies
Boosts
Views
Activity
Mar ’24