ソースを参照

chore: linter

bastiaanv 6 ヶ月 前
コミット
53f0f701ea

+ 8 - 2
LiveActivity/Views/LiveActivityView.swift

@@ -86,7 +86,10 @@ struct LiveActivityView: View {
                             switch widgetItem {
                             case .currentGlucose:
                                 VStack {
-                                    LiveActivityBGLabelView(context: context, additionalState: context.state.detailedViewState)
+                                    LiveActivityBGLabelView(
+                                        context: context,
+                                        additionalState: context.state.detailedViewState
+                                    )
 
                                     HStack {
                                         LiveActivityGlucoseDeltaLabelView(
@@ -110,7 +113,10 @@ struct LiveActivityView: View {
                             case .updatedLabel:
                                 LiveActivityUpdatedLabelView(context: context, isDetailedLayout: true, isWatchOS: false)
                             case .totalDailyDose:
-                                LiveActivityTotalDailyDoseView(context: context, additionalState: context.state.detailedViewState)
+                                LiveActivityTotalDailyDoseView(
+                                    context: context,
+                                    additionalState: context.state.detailedViewState
+                                )
                             case .empty:
                                 Text("").frame(width: 50, height: 50)
                             }

+ 48 - 48
Trio/Sources/Modules/LiveActivitySettings/View/LiveActivitySettingsRootView.swift

@@ -152,59 +152,59 @@ extension LiveActivitySettings {
                                 }
                             }
                         }.listRowBackground(Color.chart)
-                    }
 
-                    Section {
-                        VStack {
-                            Picker(
-                                selection: $state.smartStackView,
-                                label: Text("Watch Widget Style")
-                            ) {
-                                ForEach(LockScreenView.allCases) { selection in
-                                    Text(selection.displayName).tag(selection)
-                                }
-                            }.padding(.top)
+                        Section {
+                            VStack {
+                                Picker(
+                                    selection: $state.smartStackView,
+                                    label: Text("Watch/Carplay Widget Style")
+                                ) {
+                                    ForEach(LockScreenView.allCases) { selection in
+                                        Text(selection.displayName).tag(selection)
+                                    }
+                                }.padding(.top)
 
-                            HStack(alignment: .center) {
-                                Text(
-                                    "Select simple or detailed style. See hint for more details."
-                                )
-                                .font(.footnote)
-                                .foregroundColor(.secondary)
-                                .lineLimit(nil)
-                                Spacer()
-                                Button(
-                                    action: {
-                                        hintLabel = String(localized: "Watch Widget Style")
-                                        selectedVerboseHint =
-                                            AnyView(
-                                                VStack(alignment: .leading, spacing: 10) {
-                                                    Text("Default: Simple").bold()
-                                                    VStack(alignment: .leading, spacing: 10) {
-                                                        Text("Simple:").bold()
-                                                        Text(
-                                                            "Trio's Simple Watch Widget displays current glucose reading, trend arrow, delta and the timestamp of the current reading."
-                                                        )
-                                                    }
+                                HStack(alignment: .center) {
+                                    Text(
+                                        "Select simple or detailed style. See hint for more details."
+                                    )
+                                    .font(.footnote)
+                                    .foregroundColor(.secondary)
+                                    .lineLimit(nil)
+                                    Spacer()
+                                    Button(
+                                        action: {
+                                            hintLabel = String(localized: "Watch/Carplay Widget Style")
+                                            selectedVerboseHint =
+                                                AnyView(
                                                     VStack(alignment: .leading, spacing: 10) {
-                                                        Text("Detailed:").bold()
-                                                        Text(
-                                                            "The Detailed Watch Screen Widget offers users a glucose chart as well as the current glucose, delta and the timestamp of current reading."
-                                                        )
+                                                        Text("Default: Simple").bold()
+                                                        VStack(alignment: .leading, spacing: 10) {
+                                                            Text("Simple:").bold()
+                                                            Text(
+                                                                "Trio's Simple Watch Widget displays current glucose reading, trend arrow, delta and the timestamp of the current reading."
+                                                            )
+                                                        }
+                                                        VStack(alignment: .leading, spacing: 10) {
+                                                            Text("Detailed:").bold()
+                                                            Text(
+                                                                "The Detailed Watch Screen Widget offers users a glucose chart as well as the current glucose, delta and the timestamp of current reading."
+                                                            )
+                                                        }
                                                     }
-                                                }
-                                            )
-                                        shouldDisplayHintSmartStack.toggle()
-                                    },
-                                    label: {
-                                        HStack {
-                                            Image(systemName: "questionmark.circle")
+                                                )
+                                            shouldDisplayHintSmartStack.toggle()
+                                        },
+                                        label: {
+                                            HStack {
+                                                Image(systemName: "questionmark.circle")
+                                            }
                                         }
-                                    }
-                                ).buttonStyle(BorderlessButtonStyle())
-                            }.padding(.top)
-                        }.padding(.bottom)
-                    }.listRowBackground(Color.chart)
+                                    ).buttonStyle(BorderlessButtonStyle())
+                                }.padding(.top)
+                            }.padding(.bottom)
+                        }.listRowBackground(Color.chart)
+                    }
                 }
             }
             .listSectionSpacing(sectionSpacing)