I am trying to get this done using AttributedString
.
Is there a way to have horizontal line with words in the middle?
I am trying to get this done using AttributedString
.
Is there a way to have horizontal line with words in the middle?
Copyright © 2021 Jogjafile Inc.
you can achieve this by using three label with auto-layout
i give constraint to center label(Today 08.30) center horizontal and center vertical to viewcontroller.
just change the Hugging Priority of center label(Today 08.30) to 1000
now your center label adjust his width accoding to your text.
give backboard color to other two label.