separate all customize views into their own files
make corner radius a constant create the views in the main app file and pass through so they dont get re-drawn when changing UI things
This commit is contained in:
@@ -98,7 +98,7 @@ struct SwitchableView: View {
|
||||
theme.currentTheme.secondaryBGColor
|
||||
)
|
||||
.contentShape(Rectangle())
|
||||
.cornerRadius(10, corners: [.topLeft, .topRight, .bottomLeft, .bottomRight])
|
||||
.cornerRadius(Constants.viewsCornerRaidus, corners: [.topLeft, .topRight, .bottomLeft, .bottomRight])
|
||||
.padding(.bottom, 30)
|
||||
.onTapGesture {
|
||||
viewType = viewType.next()
|
||||
|
||||
Reference in New Issue
Block a user