Custom bullets from images in UITextView or UILabel Swift

I am creating an application that is basically a mobile version of a large website. There is a specific area on this website that lists product features. Each function is labeled with a unique custom image.

Is there a way to do this quickly? Essentially create a list of bullet strings, but use small images for bullet points instead?

+2


source to share


1 answer


  • Create your UITextView text type as an attribute

    enter image description here

  • Increase Head Offset Value

    enter image description here

  • Create a string in the following format:

    "• This is a line \ n \ n • This is another line, but longer and better. The number of words on this line is probably higher than the last.

  • Use Alt + 8 to enter a bullet.

  • Result: enter image description here



+4


source







All Articles