Post

Replies

Boosts

Views

Activity

Reply to XCode 15 (15A240d) keeps crashing on launch
For me it is crashing too. I noticed at the last startup the iPhone SDK needed to be downloaded again. Maybe an update, because I had it already installed a couple of days ago and it was working. The only thing back then was that the Simulator was extremely slow on an Intel chipset. So maybe they tried to fix something there. Now its crashing at startup but I can get rid of the crash by renaming iPhoneSimulator.platform to iPhoneSimulator.platform.bak and iPhoneOS.platform to iPhoneOS.platform.bak which are both found under the path: /Applications/Xcode.app/Contents/Developer/Platforms Of course iPhone development is not possible this way. When I then just renamed them back to the normal way, one by one, suddenly there was no startup crash anymore. And also iOS builds were possible again. But the simulator is still amazingly slow on an Intel chipset.
Sep ’23
Reply to Issue with .sheet() Passing String to a View in SwiftUI 2.0
Hi, also stumbled across this. Although the workaround with using a binding works. It seems that there is a special function that you can use in this case. sheet(item:onDismiss:content:) You can pass a binding to the item parameter and then use that value inside of the content closure e.g. .sheet(item: $data, onDismiss: nil, content: { data in                 CustomView(withCustomData: data)             }) This basically also uses a binding. I don't know if it has more benefits but it looks like this function was especially created for passing in dynamic data. The sheet in this case will be displayed if data becomes non-nil so there is no need for an extra variable to toggle showing the sheet.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Reply to XCode 15 (15A240d) keeps crashing on launch
For me it is crashing too. I noticed at the last startup the iPhone SDK needed to be downloaded again. Maybe an update, because I had it already installed a couple of days ago and it was working. The only thing back then was that the Simulator was extremely slow on an Intel chipset. So maybe they tried to fix something there. Now its crashing at startup but I can get rid of the crash by renaming iPhoneSimulator.platform to iPhoneSimulator.platform.bak and iPhoneOS.platform to iPhoneOS.platform.bak which are both found under the path: /Applications/Xcode.app/Contents/Developer/Platforms Of course iPhone development is not possible this way. When I then just renamed them back to the normal way, one by one, suddenly there was no startup crash anymore. And also iOS builds were possible again. But the simulator is still amazingly slow on an Intel chipset.
Replies
Boosts
Views
Activity
Sep ’23
Reply to Issue with .sheet() Passing String to a View in SwiftUI 2.0
Hi, also stumbled across this. Although the workaround with using a binding works. It seems that there is a special function that you can use in this case. sheet(item:onDismiss:content:) You can pass a binding to the item parameter and then use that value inside of the content closure e.g. .sheet(item: $data, onDismiss: nil, content: { data in                 CustomView(withCustomData: data)             }) This basically also uses a binding. I don't know if it has more benefits but it looks like this function was especially created for passing in dynamic data. The sheet in this case will be displayed if data becomes non-nil so there is no need for an extra variable to toggle showing the sheet.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22