Post

Replies

Boosts

Views

Activity

dismissWindow alternative for macOS 13?
Currently for my SwiftUI application i'm using dismissWindow() to close my windows. However, I want to make my app compatible on macOS 13 to enable a wider audience. My current usage of this function is as follows: func reloadContentViewAfterDelete() { @Environment(\.openWindow) var openWindow @Environment(\.dismissWindow) var dismissWindow dismissWindow(id: "content") openWindow(id: "content") }
1
0
419
Sep ’24
Xcode App Export flagged as malware on other user's mac
I'm trying to get some people to test my application, but when they attempt to open it, it says "Malware blocked and moved to bin". Attempting to open it on my mac has no issues, but on theirs it will get flagged. Are there any solutions? I think this is to do with the signature, however this could be wrong. I am sending a direct archive through iMessage in a zip file.
3
0
789
Sep ’24
How to make an updatable ForEach loop SwiftUI
I have a ForEach loop in my code which is used to display text per child of an array (i think it's an array). var flags: [String: Any] = [ "Flag1": "FlagValue" // More values will go here, by default there are no values (but can be // loaded in) ] And this is my code // CONTENT HStack { VStack { ForEach(0...flags.count, id: \.self) { flag in Text("hey") } } } When I start the app there's only one "hey" and no more will show up when I add more flags.
10
0
588
Sep ’24
signal SIGABRT when loading a .sks (Swift 5.5)
I'm trying to make my GameOverScene load when I supposedly "die" but all i get in the editor is signal SIGABRT. Here is some code for it. if self.livesArray.count == 0 { let gameOver = SKScene(fileNamed: "GameOverScene") as! GameOverScene //This line causes SIGABRT gameOver.score = self.score self.view?.presentScene(gameOver)} Please can someone help me? Also i dont know where to find the debugger :P
1
0
794
Sep ’24
Dismiss window with an ID on macOS <14
I want to dismiss a window when a user presses a button. I have tried the @Environment dismissWindow, however that's macOS 14+. My app requires compatibility with macOS 13 at minimum.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
1
Boosts
0
Views
369
Activity
Oct ’24
dismissWindow alternative for macOS 13?
Currently for my SwiftUI application i'm using dismissWindow() to close my windows. However, I want to make my app compatible on macOS 13 to enable a wider audience. My current usage of this function is as follows: func reloadContentViewAfterDelete() { @Environment(\.openWindow) var openWindow @Environment(\.dismissWindow) var dismissWindow dismissWindow(id: "content") openWindow(id: "content") }
Replies
1
Boosts
0
Views
419
Activity
Sep ’24
Xcode App Export flagged as malware on other user's mac
I'm trying to get some people to test my application, but when they attempt to open it, it says "Malware blocked and moved to bin". Attempting to open it on my mac has no issues, but on theirs it will get flagged. Are there any solutions? I think this is to do with the signature, however this could be wrong. I am sending a direct archive through iMessage in a zip file.
Replies
3
Boosts
0
Views
789
Activity
Sep ’24
How to make an updatable ForEach loop SwiftUI
I have a ForEach loop in my code which is used to display text per child of an array (i think it's an array). var flags: [String: Any] = [ "Flag1": "FlagValue" // More values will go here, by default there are no values (but can be // loaded in) ] And this is my code // CONTENT HStack { VStack { ForEach(0...flags.count, id: \.self) { flag in Text("hey") } } } When I start the app there's only one "hey" and no more will show up when I add more flags.
Replies
10
Boosts
0
Views
588
Activity
Sep ’24
signal SIGABRT when loading a .sks (Swift 5.5)
I'm trying to make my GameOverScene load when I supposedly "die" but all i get in the editor is signal SIGABRT. Here is some code for it. if self.livesArray.count == 0 { let gameOver = SKScene(fileNamed: "GameOverScene") as! GameOverScene //This line causes SIGABRT gameOver.score = self.score self.view?.presentScene(gameOver)} Please can someone help me? Also i dont know where to find the debugger :P
Replies
1
Boosts
0
Views
794
Activity
Sep ’24
How to embed a python file in a SwiftUI app?
I am making an app in SwiftUI, but the backend code relies on python and cannot be converted to swift. How can I get the file to run?
Replies
1
Boosts
0
Views
991
Activity
May ’24
Public Beta VS Developer Beta
What is the difference between the two betas? Is one ahead of the other or is it just that one is more expensive?
Replies
0
Boosts
0
Views
939
Activity
Dec ’21