I change my widget func to
Code Block IntentConfiguration(kind: kind, intent: xxx, provider: Provider()) { entry in EntryView(entry: entry) }
by removing placeholder parameter
And i also add func to my provider to return an Entry
Code Block func placeholder(with: Context) -> FeedModelEntry
So where I should add this modifier to indicate this view should look likes placeholderView style?
Code Block .redacted(reason: .placeholder)
My widget has three line text , but after add placeholder(with: Context) i can not see my view change to placeholder view style when i edited my widget
Should my entry object need hold a isPlaceholder property to let my widget view to know it should show placeholder style?
Code Block if entry.isPlaceHolderView { someView() .redacted(reason: .placeholder) } else { someView() }
Thank you very much
Xcode-beta3