@@ -27,7 +27,7 @@ struct DomainSettingsView: View {
2727
2828 var body : some View {
2929 ScrollView {
30- VStack ( alignment: . leading, spacing: 36 ) {
30+ VStack ( alignment: . leading, spacing: Layout . contentSpacing ) {
3131 if let freeDomain = viewModel. freeStagingDomain {
3232 HStack {
3333 FreeStagingDomainView ( domain: freeDomain)
@@ -43,7 +43,7 @@ struct DomainSettingsView: View {
4343 // TODO: 8558 - show domain list with search domain action
4444 }
4545 }
46- . padding ( . init ( top : 39 , leading : 16 , bottom : 16 , trailing : 16 ) )
46+ . padding ( Layout . contentPadding )
4747 }
4848 . safeAreaInset ( edge: . bottom) {
4949 if viewModel. domains. isEmpty {
@@ -55,7 +55,7 @@ struct DomainSettingsView: View {
5555 // TODO: 8558 - search domain action
5656 }
5757 . buttonStyle ( PrimaryButtonStyle ( ) )
58- . padding ( Layout . defaultPadding )
58+ . padding ( Layout . bottomContentPadding )
5959 }
6060 . background ( Color ( . systemBackground) )
6161 }
@@ -81,7 +81,9 @@ private extension DomainSettingsView {
8181private extension DomainSettingsView {
8282 enum Layout {
8383 static let dividerHeight : CGFloat = 1
84- static let defaultPadding : EdgeInsets = . init( top: 10 , leading: 16 , bottom: 10 , trailing: 16 )
84+ static let bottomContentPadding : EdgeInsets = . init( top: 10 , leading: 16 , bottom: 10 , trailing: 16 )
85+ static let contentPadding : EdgeInsets = . init( top: 39 , leading: 16 , bottom: 16 , trailing: 16 )
86+ static let contentSpacing : CGFloat = 36
8587 }
8688}
8789
0 commit comments