简体   繁体   English

Swift-Eureka /在ButtonRow的左侧和右侧添加边距

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

I am using Eureka for creating a form. 我正在使用Eureka创建表单。

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. 在表单中添加了ButonRow,但无法在按钮的左侧和右侧添加边距(也许是填充?)以使其更小且居中。

How can I achieve that? 我该如何实现?

image link 图片链接

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM