|
123456789101112131415161718192021222324252627282930313233343536 |
- //
- // ContentView.swift
- // im-client-ios
- //
- // Created by 北京居家科技有限公司 on 2021/12/27.
- //
-
- import SwiftUI
- import WebKit
- import UIKit
-
-
- struct ContentView: View {
- @State private var image: Image?
- @State private var showingImagePicker = false
- var body: some View {
-
- VStack {
- image?
- .resizable()
- .scaledToFit()
- ImagePicker()
- // Button("Select Image") {
- // self.showingImagePicker = true
- // }
- }
-
- }
-
- }
- struct ContentView_Previews: PreviewProvider {
- static var previews: some View {
-
- ContentView()
- }
- }
|