sample/iosApp/SampleApp/ContentView.swift
changeset 67 581f0b7dc09d
equal deleted inserted replaced
66:4a652584013c 67:581f0b7dc09d
       
     1 //
       
     2 //  ContentView.swift
       
     3 //  SampleApp
       
     4 //
       
     5 //  Created by Da Risk on 28/04/2025.
       
     6 //
       
     7 
       
     8 import SwiftUI
       
     9 import aboutoss_sample_app
       
    10 
       
    11 struct ContentView: View {
       
    12     var body: some View {
       
    13 //        VStack {
       
    14 //            Image(systemName: "globe")
       
    15 //                .imageScale(.large)
       
    16 //                .foregroundStyle(.tint)
       
    17 //            Text("Hello, world!")
       
    18 //        }
       
    19 //        .padding()
       
    20         ComposeViewController()
       
    21     }
       
    22 }
       
    23 
       
    24 struct ComposeViewController: UIViewControllerRepresentable {
       
    25     func makeUIViewController(context: Context) -> UIViewController {
       
    26         return MainKt.MainViewController()
       
    27     }
       
    28 
       
    29     func updateUIViewController(_ uiViewController: UIViewController, context: Context) {
       
    30     }
       
    31 }
       
    32 
       
    33 #Preview {
       
    34     ContentView()
       
    35 }