Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,17 @@ struct MySwiftUIView: View {
Finally, register the platform view.
This can be done in an app or a plugin.

:::version-note
Starting from Flutter 3.41.0,
iOS apps use the `UIScene` lifecycle by default.
For apps using `UIScene`,
you must implement `FlutterImplicitEngineDelegate`
and register your platform views inside
`didInitializeImplicitFlutterEngine(_:)`.
For more information,
refer to the [UISceneDelegate adoption guide][].
:::

For app registration,
modify the App's `AppDelegate.swift`:

Expand Down Expand Up @@ -347,6 +358,17 @@ and the platform view provides a reference to the
Finally, register the platform view.
This can be done in an app or a plugin.

:::version-note
Starting from Flutter 3.41.0,
iOS apps use the `UIScene` lifecycle by default.
For apps using `UIScene`,
you must implement `FlutterImplicitEngineDelegate`
and register your platform views inside
`didInitializeImplicitFlutterEngine:`.
For more information,
refer to the [UISceneDelegate adoption guide][].
:::

For app registration,
modify the App's `AppDelegate.m`:

Expand Down Expand Up @@ -462,3 +484,4 @@ There are some limitations when composing iOS Platform Views.
[`BackdropFilter`]: {{site.api}}/flutter/foundation/BackdropFilter.html
[`defaultTargetPlatform`]: {{site.api}}/flutter/foundation/defaultTargetPlatform.html
[design-doc]: {{site.main-url}}/go/ios-platformview-backdrop-filter-blur
[UISceneDelegate adoption guide]: /release/breaking-changes/uiscenedelegate
Loading