Swift Default Value in String Interpolations

Swift 6.2 makes it easier to interpolate strings with optional values. What&rsquo;s The Problem? In this SwiftUI view I need to create a text string from an optional integer value: struct CounterView : View { let count : Int ? var body : some View { Text ( "The count is \( count ) " ) } } The compiler warns about the optional value: String interpolation produces a debug description for an optional…