I am porting and old Objective C application where I used attributed string to write text in - (void)drawRect:(CGRect)rect.
I am not able to draw text using the Swift