Skip to content

Commit

Permalink
Small changes in iOS interop examples (#3813)
Browse files Browse the repository at this point in the history
This changes was requested by technical writers team
  • Loading branch information
dima-avdeev-jb authored Oct 16, 2023
1 parent 368b4b3 commit 1e89d23
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions examples/interop/ios-compose-in-swiftui/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Compose in SwiftUI
# Compose Multiplatform in SwiftUI

This example shows how to use Compose inside an iOS Application written in SwiftUI.
This example shows how to use Compose Multiplatform inside an iOS Application written in SwiftUI.

Entry point is `struct ContentView` in file [ContentView.swift](iosApp%2FiosApp%2FContentView.swift).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import MapKit

struct ComposeLayer: View {
var body: some View {
ScreenTemplate(title: "Compose in SwiftUI") {
ScreenTemplate(title: "Compose Multiplatform in SwiftUI") {
ComposeViewControllerInSwiftUI()
.ignoresSafeArea(.keyboard) // Compose has its own keyboard handler
}
Expand Down
Binary file modified examples/interop/ios-compose-in-swiftui/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions examples/interop/ios-compose-in-uikit/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Compose in UIKit
# Compose Multiplatform in UIKit

This example shows how you can set up an interop between Compose and iOS UIKit UIViewController.
This example shows how you can set up an interop between Compose Multiplatform and iOS UIKit UIViewController.

![screenshot.png](screenshot.png)
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
UITabBarItem.appearance().setTitleTextAttributes([NSAttributedString.Key.font: UIFont.systemFont(ofSize: 15)], for: .normal)

let composeViewController = Main_iosKt.ComposeEntryPoint()
composeViewController.title = "Compose inside UIKit"
composeViewController.title = "Compose Multiplatform inside UIKit"

let anotherViewController = UIKitViewController()
anotherViewController.title = "UIKit"
Expand Down
Binary file modified examples/interop/ios-compose-in-uikit/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions examples/interop/ios-swiftui-in-compose/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SwiftUI in Compose
# SwiftUI in Compose Multiplatform

This example shows how to use a SwiftUI view in a Compose application.
This example shows how to use a SwiftUI view in a Compose Multiplatform application.
Pay attention to file [main.ios.kt](shared%2Fsrc%2FiosMain%2Fkotlin%2Fmain.ios.kt) and [ComposeViewControllerRepresentable.swift](iosApp%2FiosApp%2FComposeViewControllerRepresentable.swift)

![screenshot.png](screenshot.png)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct ComposeViewControllerRepresentable: UIViewControllerRepresentable {
return Main_iosKt.ComposeEntryPointWithUIView(createUIView: { () -> UIView in
SwiftUIInUIView(
content: VStack {
Text("SwiftUI in Compose")
Text("SwiftUI in Compose Multiplatform")
}
)
})
Expand Down
Binary file modified examples/interop/ios-swiftui-in-compose/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fun ComposeEntryPointWithUIView(createUIView: () -> UIView): UIViewController =
.windowInsetsPadding(WindowInsets.systemBars),
horizontalAlignment = Alignment.CenterHorizontally
) {
Text("How to use SwiftUI inside Compose")
Text("How to use SwiftUI inside Compose Multiplatform")
UIKitView(
factory = createUIView,
modifier = Modifier.size(300.dp).border(2.dp, Color.Blue),
Expand Down
4 changes: 2 additions & 2 deletions examples/interop/ios-uikit-in-compose/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UIKit in Compose
# UIKit in Compose Multiplatform

This example shows how to use a UIKitView in a Compose application.
This example shows how to use a UIKitView in a Compose Multiplatform application.
Pay attention to file [main.ios.kt](shared%2Fsrc%2FiosMain%2Fkotlin%2Fmain.ios.kt)

![screenshot.png](screenshot.png)
Expand Down
Binary file modified examples/interop/ios-uikit-in-compose/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fun ComposeEntryPoint(): UIViewController =
.windowInsetsPadding(WindowInsets.systemBars),
horizontalAlignment = Alignment.CenterHorizontally
) {
Text("How to use UIKitView inside Compose")
Text("How to use UIKitView inside Compose Multiplatform")

UIKitView(
factory = { MKMapView() },
Expand Down

0 comments on commit 1e89d23

Please sign in to comment.