From 65bc8729988214efda46091e9f0d01085e495760 Mon Sep 17 00:00:00 2001 From: Luke Zhao Date: Wed, 17 Jul 2024 14:56:23 -0700 Subject: [PATCH] update migration guide --- .../MigrationGuides/Version4MigrationGuide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/UIComponent/Documentation.docc/MigrationGuides/Version4MigrationGuide.md b/Sources/UIComponent/Documentation.docc/MigrationGuides/Version4MigrationGuide.md index f4e94a4..7a91dc4 100644 --- a/Sources/UIComponent/Documentation.docc/MigrationGuides/Version4MigrationGuide.md +++ b/Sources/UIComponent/Documentation.docc/MigrationGuides/Version4MigrationGuide.md @@ -5,9 +5,9 @@ With version 4.0, UIComponent supports displaying `Component` on any `UIView`, n For example, before 4.0, you have to create an instance of `ComponentView` to display a Component ```swift // before version 4.0 +let componentView = ComponentView() override func viewDidLoad() { super.viewDidLoad() - let componentView = ComponentView() componentView.component = VStack { Text("Hello World!") }