Post

Replies

Boosts

Views

Activity

Reply to How di
What error message do you get ? Where ? During compilation or execution ? But you declare xoutput as a String (a text) var xoutput = self.xaxis.text and later use it in a computation. distance = velocityi * 0.1 + (1/2) * xoutput * pow(0.1, 2) You should try;: var xoutput = Double(self.xaxis.text) ?? 0.0 In addition, you repeat while x == 1 { } As x never change, this will repeat infinetely. Is it what you want ?
Sep ’25
Reply to Looking for advice on app architecture
I agree that SwiftUI is not the best to develop complex Mac apps. I have developed some, but they are iOS looking, not MacOS. So, for complex apps, I do prefer AppKit. I wonder if an app like Excel could be developed fully with SwiftUI. IMHO, no. But I would be pleased to be proved wrong.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25
Reply to Looking for advice on app architecture
I agree that SwiftUI is not the best to develop complex Mac apps. I have developed some, but they are iOS looking, not MacOS. So, for complex apps, I do prefer AppKit. I wonder if an app like Excel could be developed fully with SwiftUI. IMHO, no. But I would be pleased to be proved wrong.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25
Reply to Looking for advice on app architecture
I agree that SwiftUI is not the best to develop complex Mac apps. I have developed some, but they are iOS looking, not MacOS. So, for complex apps, I do prefer AppKit. I wonder if an app like Excel could be developed fully with SwiftUI. IMHO, no. But I would be pleased to be proved wrong.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25
Reply to Looking for advice on app architecture
I've been able to develop pretty complex apps for Mac in SwiftUI, but in fact it is more iOS looking than genuine Mac app. In particular, I do not try to use menus. SwiftUI is great to rapidly develop an app (noting that full fledge Mac App with AppKit is pretty complex). But for sophisticated apps, I feel AppKit much more suited. I wonder if Excel could be developed fully in SwifUI. IMHO, I don't think so.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25
Reply to How To Position Controls With SwiftUI
You can position the views with position modifier. And if you want to position relative to screen width for instance, use screenSize @State var screenSize : CGSize = CGSize(width: 1200, height: 800) // Will be computed in .onAppear .onAppear { screenSize = CGSize(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height) When you need to position, in the middle .position(x: screenSize.width / 2, y: 50) If you have to adapt to view resize: .readSize { newSize in screenSize = newSize }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25
Reply to Using private API
I'm not Apple engineer, but my understanding is that private API may change without notice. Hence, if you use in your app, what worked in an OS version may crash with the next release. That's bad for user and for reputation of iOS / MacOS.
Topic: UI Frameworks SubTopic: General
Sep ’25
Reply to How To Position Controls With SwiftUI
I personally find that placing precisely objects is a critical limit (or constraint) with SwiftUI. What I do (sometimes with mixed results) is to group objects in separate Views (red-bordered in the image). It makes it easier to position objects (with HStack / VStack) in each view and then position the views. Hope that helps.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25
Reply to How can you boost app installs and climb the rankings in the Apple App Store?
A basic is to check the materials on the appstore: app ranking, probably one of the most important. Select when you propose ranking (ideally, when user was successful in his task). But don't try to fool the AppStore, that would result in account termination. keywords must be adapted to your target customers and hint at their problem (their major pain points) screenshots to be attractive You may have a look here: https://toolbox.marketingtools.apple.com/en-us/app-store/us and here: https://developer.apple.com/app-store/product-page-optimization/
Sep ’25
Reply to How di
What error message do you get ? Where ? During compilation or execution ? But you declare xoutput as a String (a text) var xoutput = self.xaxis.text and later use it in a computation. distance = velocityi * 0.1 + (1/2) * xoutput * pow(0.1, 2) You should try;: var xoutput = Double(self.xaxis.text) ?? 0.0 In addition, you repeat while x == 1 { } As x never change, this will repeat infinetely. Is it what you want ?
Replies
Boosts
Views
Activity
Sep ’25
Reply to Looking for advice on app architecture
I agree that SwiftUI is not the best to develop complex Mac apps. I have developed some, but they are iOS looking, not MacOS. So, for complex apps, I do prefer AppKit. I wonder if an app like Excel could be developed fully with SwiftUI. IMHO, no. But I would be pleased to be proved wrong.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to Looking for advice on app architecture
I agree that SwiftUI is not the best to develop complex Mac apps. I have developed some, but they are iOS looking, not MacOS. So, for complex apps, I do prefer AppKit. I wonder if an app like Excel could be developed fully with SwiftUI. IMHO, no. But I would be pleased to be proved wrong.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to Looking for advice on app architecture
I agree that SwiftUI is not the best to develop complex Mac apps. I have developed some, but they are iOS looking, not MacOS. So, for complex apps, I do prefer AppKit. I wonder if an app like Excel could be developed fully with SwiftUI. IMHO, no. But I would be pleased to be proved wrong.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to Looking for advice on app architecture
I've been able to develop pretty complex apps for Mac in SwiftUI, but in fact it is more iOS looking than genuine Mac app. In particular, I do not try to use menus. SwiftUI is great to rapidly develop an app (noting that full fledge Mac App with AppKit is pretty complex). But for sophisticated apps, I feel AppKit much more suited. I wonder if Excel could be developed fully in SwifUI. IMHO, I don't think so.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to How To Position Controls With SwiftUI
You can position the views with position modifier. And if you want to position relative to screen width for instance, use screenSize @State var screenSize : CGSize = CGSize(width: 1200, height: 800) // Will be computed in .onAppear .onAppear { screenSize = CGSize(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height) When you need to position, in the middle .position(x: screenSize.width / 2, y: 50) If you have to adapt to view resize: .readSize { newSize in screenSize = newSize }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to Using private API
I'm not Apple engineer, but my understanding is that private API may change without notice. Hence, if you use in your app, what worked in an OS version may crash with the next release. That's bad for user and for reputation of iOS / MacOS.
Topic: UI Frameworks SubTopic: General
Replies
Boosts
Views
Activity
Sep ’25
Reply to Guidance on Blocking Screenshots/Screen Recordings in macOS App (Unity 6000.0.51f1)
ensure that any captured content appears blank/black for sensitive sections of the app. Such request has been made on the forum a number of time. But even if there was a way to do it (AFAIK, there is except playing at very low level on video signal), some could take a photo of the screen with an external camera. So you would not protect anything.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to How To Position Controls With SwiftUI
I personally find that placing precisely objects is a critical limit (or constraint) with SwiftUI. What I do (sometimes with mixed results) is to group objects in separate Views (red-bordered in the image). It makes it easier to position objects (with HStack / VStack) in each view and then position the views. Hope that helps.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to How can you boost app installs and climb the rankings in the Apple App Store?
A basic is to check the materials on the appstore: app ranking, probably one of the most important. Select when you propose ranking (ideally, when user was successful in his task). But don't try to fool the AppStore, that would result in account termination. keywords must be adapted to your target customers and hint at their problem (their major pain points) screenshots to be attractive You may have a look here: https://toolbox.marketingtools.apple.com/en-us/app-store/us and here: https://developer.apple.com/app-store/product-page-optimization/
Replies
Boosts
Views
Activity
Sep ’25