Make tabs easier to click
Changelog-Changed: Make tabs easier to click
This commit is contained in:
@@ -37,6 +37,8 @@ struct CustomPicker<SelectionValue: Hashable, Content: View>: View {
|
|||||||
text
|
text
|
||||||
.padding(EdgeInsets(top: 15, leading: 0, bottom: 10, trailing: 0))
|
.padding(EdgeInsets(top: 15, leading: 0, bottom: 10, trailing: 0))
|
||||||
.font(.system(size: 14, weight: .heavy))
|
.font(.system(size: 14, weight: .heavy))
|
||||||
|
.contentShape(Rectangle())
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
}
|
}
|
||||||
.background(
|
.background(
|
||||||
Group {
|
Group {
|
||||||
@@ -48,7 +50,6 @@ struct CustomPicker<SelectionValue: Hashable, Content: View>: View {
|
|||||||
},
|
},
|
||||||
alignment: .bottom
|
alignment: .bottom
|
||||||
)
|
)
|
||||||
.frame(maxWidth: .infinity)
|
|
||||||
.accentColor(tag == selection ? textColor() : .gray)
|
.accentColor(tag == selection ? textColor() : .gray)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user