In the early versions of the platform views features, it was only supported on Android. At the time of writing this book, the iOS implementation of embedding UIKitView is still in release preview. So, we need to change the application's ios/Runner/Info.plist file and add a specific setting:
<plist version="1.0">
<dict>
...
<key>io.flutter.embedded_views_preview</key>
<string>YES</string>
</dict>
</plist>
This will enable the functionality for iOS apps so that we can use the preview feature in our application.
A list of open issues about embedding iOS views is available on GitHub: https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22a%3A+platform-views%22+label%3A%22%E2%8C%BA%E2%80%AC+platform-ios%22.