Post

Replies

Boosts

Views

Activity

Game Center Login Notification Displayed at Top in the App
In the app, when logged into Game Center and moving the app to the background and then returning to the foreground, the Game Center login message is displayed at the top every time. Before iOS 17, this message was only shown at the initial login and app launch. However, from iOS 17, this message is displayed during the transition from background to foreground. Is this an intended feature or a bug?
0
0
614
Sep ’23
Swift 5.9 is compatible with which minimum iOS version?
As the title suggests, I'm planning to use a combination of Swift and C++ in our application. Our app currently supports iOS 11 as the minimum version, but we're planning to update Xcode in the future and elevate our minimum version to iOS 12. With that in mind, can an app with iOS 12 as its minimum target use Swift 5.9? Additionally, is it possible for an app targeting at least iOS 12 to use a mix of Swift and C++?
1
0
2.9k
Aug ’23
Will dividing a long String by + make a difference in performance?
Just like the title. In Swift, when you have a single long String like this: let description = "title - \(myItem.title) subtitle - \(myItem.subtitle) text - \(myItem.text) price - \(myItem.price)" For readability, we break it down like this: let description = "title - \(myItem.title) " + "subtitle - \(myItem.subtitle) " + "text - \(myItem.text) " + "price - \(myItem.price)" Because it is an example, there are only about 4 pieces divided, but in actual use, there may be dozens of pieces, You may end up calling this code hundreds of times. Will there be any performance impact (speed, memory footprint, memory allocation and deallocation, etc.)? Or will it do something smarter at the compile stage?
2
0
564
Jan ’23