DFWatchFacePreviews.swift
657 Bytes
//
// DFWatchFacePreviews.swift
// hippo-watch-extension
//
import WidgetKit
import SwiftUI
#Preview("默认表盘", as: .accessoryRectangular) {
DFDefaultHomeWidget()
} timeline: {
DFWatchFaceEntry(date: .now, face: .defaultHome, data: .placeholder, theme: nil)
}
#Preview("单人压力表盘", as: .accessoryRectangular) {
DFSingleStressWidget()
} timeline: {
DFWatchFaceEntry(date: .now, face: .singleStress, data: .placeholder, theme: nil)
}
#Preview("双人压力表盘", as: .accessoryRectangular) {
DFCoupleStressWidget()
} timeline: {
DFWatchFaceEntry(date: .now, face: .coupleStress, data: .placeholder, theme: nil)
}