adjust nav wheel height.
This commit is contained in:
parent
ad8a680b76
commit
15d84d847e
1 changed files with 4 additions and 4 deletions
|
|
@ -35,7 +35,7 @@ struct WheelNavBar: View {
|
||||||
Circle()
|
Circle()
|
||||||
.stroke(currentTab.color, lineWidth: 2.5)
|
.stroke(currentTab.color, lineWidth: 2.5)
|
||||||
)
|
)
|
||||||
.position(x: centerPoint, y: 32)
|
.position(x: centerPoint, y: 36)
|
||||||
.shadow(color: currentTab.color.opacity(0.4), radius: 10)
|
.shadow(color: currentTab.color.opacity(0.4), radius: 10)
|
||||||
|
|
||||||
// Rotary Wheel Items
|
// Rotary Wheel Items
|
||||||
|
|
@ -82,7 +82,7 @@ struct WheelNavBar: View {
|
||||||
axis: (x: 0.0, y: 1.0, z: 0.0),
|
axis: (x: 0.0, y: 1.0, z: 0.0),
|
||||||
perspective: 0.5
|
perspective: 0.5
|
||||||
)
|
)
|
||||||
.position(x: centerPoint + xOffset, y: 32 + yOffset)
|
.position(x: centerPoint + xOffset, y: 36 + yOffset)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
withAnimation(.spring(response: 0.35, dampingFraction: 0.75)) {
|
withAnimation(.spring(response: 0.35, dampingFraction: 0.75)) {
|
||||||
selectedIndex = tab.id
|
selectedIndex = tab.id
|
||||||
|
|
@ -92,7 +92,7 @@ struct WheelNavBar: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(height: 64)
|
.frame(height: 72)
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.gesture(
|
.gesture(
|
||||||
DragGesture()
|
DragGesture()
|
||||||
|
|
@ -121,7 +121,7 @@ struct WheelNavBar: View {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
.padding(.vertical, 6)
|
.padding(.vertical, 10)
|
||||||
.background(
|
.background(
|
||||||
RoundedRectangle(cornerRadius: 28, style: .continuous)
|
RoundedRectangle(cornerRadius: 28, style: .continuous)
|
||||||
.fill(.ultraThinMaterial)
|
.fill(.ultraThinMaterial)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue