-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed ITMViewController to have static variables instead of the cre…
…ateApplication function. Added ITMSwiftUI.
- Loading branch information
1 parent
83833c4
commit 95f8a56
Showing
3 changed files
with
60 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//--------------------------------------------------------------------------------------- | ||
// | ||
// $Source: FieldiOS/App/Utils/ITMApplication.swift $ | ||
// | ||
// $Copyright: (c) 2021 Bentley Systems, Incorporated. All rights reserved. $ | ||
// | ||
//--------------------------------------------------------------------------------------- | ||
|
||
import SwiftUI | ||
|
||
@available(iOS 13.0, *) | ||
public struct ITMSwiftUIWebView: UIViewControllerRepresentable { | ||
public func makeUIViewController(context: Context) -> ITMViewController { | ||
return ITMViewController() | ||
} | ||
|
||
public func updateUIViewController(_ uiViewController: ITMViewController, context: Context) { | ||
//intentionally doing nothing here | ||
} | ||
} | ||
|
||
@available(iOS 13.0, *) | ||
public struct ITMSwiftUIContentView: View { | ||
// wihtout this empty init, things wouldn't compile | ||
public init() { | ||
} | ||
public var body: some View { | ||
ITMSwiftUIWebView() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters