Post

Replies

Boosts

Views

Activity

SwiftUI indentation in multiline string
I want to create a multiline text view with bullet points indented to the right. The text following these bullet points is long and is looping to the next row, which I want. However, the part that is being looped is not keeping the original indentation that I gave the line. This is my code: Text(""" Moving piece • To move pieces, click on the piece you want to move • Then click on the square you want to move the piece to • To unselect a piece, simply click it again """) Here is a screenshot: The word "piece" is not receiving the indent that the beginning of that sentence was given. How can I fix this?
3
0
4.2k
Apr ’23