We're developing an app in Swift with al lot of bullet point lists. I know how to create the bullets (\U2022, since I'm using localized strings). I also know how to pick a particulair string and create an attributed string which takes care of paragraphstyle for the indentation, etc. My issue though is, we are using a lot of strings with a lot of bullet lists.
My question; is there a more generic way to pick a random string, detect if it has any bullet points (\U2022) and, if so, pick the bullet points and align them left, make an indentation, etc? I can imagine there might be a way to use an extension on String which transforms a strings bullet list if it has any bullet points.
Thanks in advance! Martin