Displaying a custom swift view in widget kit

I have a view in swift(UIKit). I have converted this view to UIViewRepresentable and this I have used in swiftUI and my UIKIt view is visible in it.

Code Block swift
import SwiftUI
struct ContentView: View {
    var body: some View {
        VStack {
            Text("Hello, world!").padding()
            Text("This is root content view")
MyViewRepresentable()
        }
    }
}

This above swiftUI contentView is working fine while showing in the application form. But when I try the same in Widgets, the application is getting crashed.

I am getting the following error :
Fatal error: PlatformViewRepresentableAdaptor<MyViewRepresentable>: file /Library/Caches/com.apple.xbs/Sources/ChronoSim/Chrono-63.5/WidgetKit/SPI/WidgetViewArchive.swift, line 254

2020-07-08 12:45:31.402597+0530 TestSwiftWidgetExtension[24779:632349] Fatal error: PlatformViewRepresentableAdaptor<MyViewRepresentable>: file /Library/Caches/com.apple.xbs/Sources/Chrono
Sim/Chrono-63.5/WidgetKit/SPI/WidgetViewArchive.swift, line 254
Answered by Documentation Engineer in 619783022
That's correct, WidgetKit does not support embedding UIKit views.
In this thread, Apple's Engineer says

UIKit views wrapped in UIViewRepresentable will not work in WidgetKit.

He/she says they will appear blank, but may be related to your issue.
That's correct, WidgetKit does not support embedding UIKit views.
Displaying a custom swift view in widget kit
 
 
Q