Post

Replies

Boosts

Views

Activity

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 Offset modifier not working when used inside a scoped animation (iOS 17) in SwiftUI
I noted that animation modifier on Text is useless. This code works the same: struct ContentView: View { @State private var animate = false var body: some View { VStack(spacing: 20) { Button("Toggle Scoped Animation") { animate.toggle() } Button("Toggle withAnimation{}") { withAnimation { animate.toggle() } } Text("Hello, world!") // .animation(.default) { // $0 .opacity(animate ? 1 : 0.2) .offset(y: animate ? 0 : 100) // <-- DOESN'T WORK // } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’24
Reply to I made a wrong selection under the title Digital Services Act Compliance.
You can change it, as explained here: https://developer.apple.com/help/app-store-connect/manage-compliance-information/manage-european-union-digital-services-act-compliance-information From the home page, click Business. On the Agreements tab, scroll down to the Compliance section. Next to Digital Services Act, click Complete Compliance Requirements. Select from the following options: “This is a trader account.” You’ll need to enter contact information for display on your App Store product pages. Continue to step 5. Note: You’ll still have the option to turn off your trader status for specific apps later. “This is not a trader account.” You won’t need to provide any contact information. Click Done. Enter or confirm the required contact information and click Next.
Topic: App & System Services SubTopic: General Tags:
Mar ’24