Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はXCode 12 beta 2onを使用しiOS 14 Simulatorており、プレースホルダー ビューからウィジェット プレビュー画面 (つまり、新しいウィジェットを追加しようとしたときに表示される画面) を更新しようとしています。
XCode 12 beta 2
iOS 14 Simulator
struct PlaceholderView : View { var body: some View { Text("Preview Title") } }
これに対する解決策はありますか?
あなたはすでにこれを整理していると思いますが、それ以降、これらの関数からプレースホルダーが設定されています。
// Placeholder func placeholder(in context: Self.Context) -> Self.Entry // Widget Galery func getSnapshot(in context: Self.Context, completion: @escaping (Self.Entry) -> ())