formattedValue
Returns the player’s score as a localized string.
Declaration
var formattedValue: String? { get }Discussion
This property is invalid on a newly initialized score object. On a score returned from GameKit, it contains a formatted string based on the player’s score. You determine how a score is formatted when you define the leaderboard in App Store Connect.
Never convert the value property into a string directly; always use this method to receive the formatted string.