ci: add iPhone deploy workflow + CI/CD setup docs #4
@@ -58,8 +58,7 @@ jobs:
|
||||
xcodebuild -list
|
||||
xcodebuild build \
|
||||
-project TabataGo.xcodeproj \
|
||||
-target TabataGo \
|
||||
-sdk iphoneos \
|
||||
-scheme TabataGo \
|
||||
-destination "generic/platform=iOS" \
|
||||
-configuration Debug \
|
||||
-allowProvisioningUpdates \
|
||||
|
||||
@@ -98,6 +98,8 @@ struct RectangularComplicationView: View {
|
||||
}
|
||||
|
||||
/// `.accessoryCorner` — tiny bolt + streak digit in the corner
|
||||
#if canImport(WatchKit)
|
||||
@available(watchOS 10.0, *)
|
||||
struct CornerComplicationView: View {
|
||||
let entry: TabataEntry
|
||||
|
||||
@@ -111,6 +113,7 @@ struct CornerComplicationView: View {
|
||||
.widgetLabel(String(format: String(localized: LocalizedStringResource("watch.complication.dayStreakFmt")), entry.streak))
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// ─── Widget definition ────────────────────────────────────────────────────────
|
||||
|
||||
@@ -127,7 +130,7 @@ struct TabataGoComplication: Widget {
|
||||
.supportedFamilies([
|
||||
.accessoryCircular,
|
||||
.accessoryRectangular,
|
||||
#if os(watchOS)
|
||||
#if canImport(WatchKit)
|
||||
.accessoryCorner
|
||||
#endif
|
||||
])
|
||||
@@ -144,7 +147,7 @@ struct TabataComplicationEntryView: View {
|
||||
CircularComplicationView(entry: entry)
|
||||
case .accessoryRectangular:
|
||||
RectangularComplicationView(entry: entry)
|
||||
#if os(watchOS)
|
||||
#if canImport(WatchKit)
|
||||
case .accessoryCorner:
|
||||
CornerComplicationView(entry: entry)
|
||||
#endif
|
||||
@@ -167,3 +170,12 @@ struct TabataComplicationEntryView: View {
|
||||
} timeline: {
|
||||
TabataEntry(date: .now, streak: 7, lastWorkoutLabel: "Today")
|
||||
}
|
||||
|
||||
#if canImport(WatchKit)
|
||||
@available(watchOS 10.0, *)
|
||||
#Preview("Corner", as: .accessoryCorner) {
|
||||
TabataGoComplication()
|
||||
} timeline: {
|
||||
TabataEntry(date: .now, streak: 7, lastWorkoutLabel: "Today")
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user