Post

Replies

Boosts

Views

Activity

Does an interpolated String inside a database still hold the refference to its variables?
I have a variable for storing a username like this: var username = "Albert" I have an interpolated String using this variable like this: let string = "Hey, \(username), how are you doing today?" This String is inside a codable object, which is persisted with Core Data. When the codable object is loaded after a while and the username changed, will it display the new username in the interpolated String or will the string hold the initial value when persisted?
1
0
560
Jul ’20
App's App Store ID availble before initial App release?
Hey guys, I'm currently building my first app, which is not released yet. Inside the app there is one button that should bring the user to the app's App Store page, if the user wants to rate the app. I have found a way to navigate the user to the App Store page, with the help of the SKStoreProductViewController - https://developer.apple.com/documentation/storekit/skstoreproductviewcontroller. Although I need the App Store ID of my app aka the SKStoreProductParameterITunesItemIdentifier. - https://developer.apple.com/documentation/storekit/skstoreproductparameteritunesitemidentifier My question is now: How can I get my App Store ID if my app is not released yet? When looking into App Store Connect - My App - General Information I see a point called "Apple ID" with an 10 digit code. The description when clicking on the question mark is: "An automatically generated ID assigned to your app". This code looks like the App Store ID, but is it really it? Really appreciate any help!
0
0
1.5k
Apr ’21
Exclusion path splits word at the end of the line independent of lineBreakMode
When using a UITextView and setting its textContainer's exclusionPaths to a path which lies at the and of a line, the words at the end of the line are split into characters even though setting lineBreakMode to .byWordWrapping. This also happens when moving the image to the end of the line in Apple's sample code from the WWDC session "What's new in TextKit and text views from WWDC22": https://developer.apple.com/documentation/uikit/textkit/enriching_your_text_in_text_views
0
1
968
Jun ’23