onurgenes
onurgenes

Reputation: 137

Swift - Eureka / Adding margin to left and right of ButtonRow

I am using Eureka for creating a form.

Added ButonRow to the form but can't add margin (maybe padding?) to the left and right of the button for make it smaller and centered.

How can I achieve that?

image link

Upvotes: 0

Views: 1072

Answers (1)

Vladimir
Vladimir

Reputation: 1053

.cellSetup { cell, _ in
    cell.indentationLevel = 1
    cell.indentationWidth = 12
    cell.contentView.layoutMargins.right = 20
}

Upvotes: 2

Related Questions