How To Display Fractions & Special Characters in Swift & SwiftUI Using NSLocalizedString to convert double values to strings NSLocalizedString NSLocalizedString takes a key and a comment and returns a localized value of a string. You can pass Unicode characters to NSLocalizedString and have your special character displayed inside your app. Example To display a fraction, you can use a numerator Unicode, fraction slash Unicode, and a denominator Unicode. The Unicode for numerators is \u{207 x }. The x is a number in this set {0,4,5,6,7,8,9}. A fraction slash is \u{2044}. Lastly, the Unicode for denominators is \u{208 x }. Unlike the numerators, the x is a number between 0 and 9. You can create a string variable that holds the fraction 4/5 in SwiftUI with the code below: There are existing Unicode characters for common fractions such as \u{00BD} for 1/2. You can use the function below to return the common fractions. Pass a double value to the function and it will return...