Can't get placeholderView .isPlaceHolder(true) working.

I noticed that the downloaded code had intents setup, so changed the code to be StaticConfiguration. everything worked the correctly, however when I tried to add in the .isPlaceHolder(true) I get the message that it is not valid, Here's the code:
Code Block
import WidgetKit
import SwiftUI
import Intents
struct Provider: TimelineProvider {
    public func snapshot(with context: Context, completion: @escaping (SimpleEntry) -> ()) {
        let entry = SimpleEntry(date: Date(), character: .panda)
        completion(entry)
    }
    public func timeline(with context: Context, completion: @escaping (Timeline<Entry>) -> ()) {
        let entries: [SimpleEntry] = [SimpleEntry(date: Date(), character: .panda)]
        let timeline = Timeline(entries: entries, policy: .atEnd)
        completion(timeline)
    }
}
struct SimpleEntry: TimelineEntry {
    public let date: Date
    let character: CharacterDetail
}
struct PlaceholderView : View {
    var body: some View {
        AvatarView(.panda)
        .isPlaceHolder(true) /* ERROR - Value of type 'AvatarView' has no member 'isPlaceHolder' */
    }
}
struct EmojiRangerWidgetEntryView : View {
    var entry: Provider.Entry
    var body: some View {
        AvatarView(entry.character)
    }
}
@main
struct EmojiRangerWidget: Widget {
    private let kind: String = "EmojiRangerWidget"
    public var body: some WidgetConfiguration {
        StaticConfiguration(kind: kind, provider: Provider(), placeholder: PlaceholderView()) { entry in
            EmojiRangerWidgetEntryView(entry: entry)
        }
        .configurationDisplayName("Emoji Rangers Detail")
        .description("Keep track of your favorite emoji ranger.")
        .supportedFamilies([.systemSmall])
    }
}
struct EmojiRangerWidget_Previews: PreviewProvider {
    static var previews: some View {
        Group {
            AvatarView(.panda )
                .previewContext(WidgetPreviewContext(family: .systemSmall))
            PlaceholderView()
                .previewContext(WidgetPreviewContext(family: .systemSmall))
        }
    }
}

Accepted Reply

Nevermind, when I created the Widget it had preselected the Include Configuration Intent information.. restarting to fix

Replies

Nevermind, when I created the Widget it had preselected the Include Configuration Intent information.. restarting to fix
The modifier .isPlaceholder is not yet available (via: https://developer.apple.com/forums/thread/650564 )
Noticed that after I rebuilt the app completely.