i was wondering if there was a builtin method to represent
var someFraction = \"1/12\"
as an attributed string? i.e. the \"1\" is
\"1\"
You could use unicode to display fractions instead of using Attributed strings. This link has a source code written in objective C . You can easily port it in swift.