|
@@ -12,11 +12,18 @@ struct GlucoseTrendView: View {
|
|
|
var body: some View {
|
|
var body: some View {
|
|
|
VStack {
|
|
VStack {
|
|
|
ZStack {
|
|
ZStack {
|
|
|
- TrendShape(rotationDegrees: rotationDegrees, isSmallDevice: is40mm)
|
|
|
|
|
- .animation(.spring(response: 0.5, dampingFraction: 0.6), value: rotationDegrees)
|
|
|
|
|
|
|
+ Circle()
|
|
|
|
|
+ // TODO: set loop colors conditionally, not hard coded
|
|
|
|
|
+ .stroke(Color.green, lineWidth: is40mm ? 1 : 1.5)
|
|
|
|
|
+ .frame(width: is40mm ? 86 : 105, height: is40mm ? 86 : 105)
|
|
|
|
|
+ .background(Circle().fill(Color.bgDarkBlue))
|
|
|
// TODO: set loop colors conditionally, not hard coded
|
|
// TODO: set loop colors conditionally, not hard coded
|
|
|
.shadow(color: .green, radius: is40mm ? 8 : 12)
|
|
.shadow(color: .green, radius: is40mm ? 8 : 12)
|
|
|
|
|
|
|
|
|
|
+ TrendShape(rotationDegrees: rotationDegrees, isSmallDevice: is40mm)
|
|
|
|
|
+ .animation(.spring(response: 0.5, dampingFraction: 0.6), value: rotationDegrees)
|
|
|
|
|
+ .shadow(color: Color.black.opacity(0.5), radius: 5)
|
|
|
|
|
+
|
|
|
VStack(alignment: .center) {
|
|
VStack(alignment: .center) {
|
|
|
Text(state.currentGlucose)
|
|
Text(state.currentGlucose)
|
|
|
.fontWeight(.semibold)
|
|
.fontWeight(.semibold)
|