File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public struct SettingGroup: Setting {
1515 public var id : AnyHashable ?
1616 public var header : String ?
1717 public var footer : String ?
18- public var horizontalPadding : CGFloat ? = nil
18+ public var horizontalPadding : CGFloat ?
1919 public var backgroundColor : Color ?
2020 public var backgroundCornerRadius = CGFloat ( 12 )
2121 public var dividerLeadingMargin = CGFloat ( 16 )
@@ -56,7 +56,7 @@ public struct SettingGroupView<Content: View>: View {
5656 public var icon : SettingIcon ?
5757 public var header : String ?
5858 public var footer : String ?
59- public var horizontalPadding : CGFloat ? = nil
59+ public var horizontalPadding : CGFloat ?
6060 public var foregroundColor : Color ?
6161 public var backgroundColor : Color ?
6262 public var backgroundCornerRadius = CGFloat ( 12 )
@@ -120,7 +120,9 @@ public struct SettingGroupView<Content: View>: View {
120120 content ( )
121121 }
122122 . background ( backgroundColor ?? settingSecondaryBackgroundColor)
123- . cornerRadius ( backgroundCornerRadius)
123+ . mask {
124+ RoundedRectangle ( cornerRadius: backgroundCornerRadius, style: . continuous)
125+ }
124126
125127 if let footer {
126128 Text ( footer)
You can’t perform that action at this time.
0 commit comments