From c34d7274ececf89eb015a65f47f2b63350cb0041 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Sun, 3 May 2026 16:06:33 +0800 Subject: [PATCH] fix: shortcuts preview availability --- ios/App/shortcuts/shortcuts.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ios/App/shortcuts/shortcuts.swift b/ios/App/shortcuts/shortcuts.swift index 62c4f23888..705dbc99be 100644 --- a/ios/App/shortcuts/shortcuts.swift +++ b/ios/App/shortcuts/shortcuts.swift @@ -150,8 +150,9 @@ struct Shortcuts: Widget { } } -#Preview(as: .systemSmall) { - Shortcuts() -} timeline: { - SimpleEntry(date: .now) +struct Shortcuts_Previews: PreviewProvider { + static var previews: some View { + ShortcutsEntryView(entry: SimpleEntry(date: .now)) + .previewContext(WidgetPreviewContext(family: .systemSmall)) + } }