Hopefully, this will help you. Below is the sample widget code for IntentWidget
https://developer.apple.com/documentation/widgetkit/building_widgets_using_widgetkit_and_swiftui
2. Under here is the link for the [wwdc2020] demo session. I would recommend you to go through the entire course to understand the widgets completely.
https://developer.apple.com/videos/play/wwdc2020/10036
Post
Replies
Boosts
Views
Activity
You can remove in app purchase from apple store.
please follow the steps
Manage inApp
choose the product you want to remove
check if the product is remove from sale or not
if not remove please uncheck "Clear for sale" option
then on extreme right side there will be a delete button that will show upon hover please remove by clicking on it.