Hey,
I just cam across the WidgetKit Code along and the Apple engineer uses a modifier named
This creates a nice looking view for the Widget placeholders.
The complete sample code is:
On the current Xcode 12 this API is not available as it looks and the documentation does not mention it as well.
Will it be part of a future beta?
Kind regards
I just cam across the WidgetKit Code along and the Apple engineer uses a modifier named
Code Block isPlaceholder(true)
This creates a nice looking view for the Widget placeholders.
The complete sample code is:
Code Block struct PlaceholderView : View { var body: some View { AvatarView(.panda) .isPlaceholder(true) } }
On the current Xcode 12 this API is not available as it looks and the documentation does not mention it as well.
Will it be part of a future beta?
Kind regards