Skip to content

Commit

Permalink
Rename ITwinMobile class to ITMNativeUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcobbs-bentley committed Aug 26, 2021
1 parent a4cb60e commit ef78f76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//---------------------------------------------------------------------------------------
//
// $Source: FieldiOS/App/Utils/ITwinMobile.swift $
// $Source: FieldiOS/App/Utils/ITMNativeUI.swift $
//
// $Copyright: (c) 2020 Bentley Systems, Incorporated. All rights reserved. $
//
Expand Down Expand Up @@ -39,7 +39,7 @@ extension CGRect {

// MARK: - ITwinMobile class

open class ITwinMobile {
open class ITMNativeUI {
private var components: [ITMComponent] = []
public init(viewController: UIViewController, itmMessenger: ITMMessenger) {
components.append(ITMActionSheet(viewController: viewController, itmMessenger: itmMessenger))
Expand Down
8 changes: 4 additions & 4 deletions Sources/ITwinMobile/ITMViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ open class ITMViewController: UIViewController {
public static var autoLoadWebApplication = true
public static var delayedAutoLoad = false
public let application: ITMApplication
private var iTwinMobile: ITwinMobile?
private var itmNativeUI: ITMNativeUI?
private var loadedOnce = false
private var willEnterForegroundObserver: Any? = nil

Expand All @@ -35,13 +35,13 @@ open class ITMViewController: UIViewController {
}

open override func viewWillAppear(_ animated: Bool) {
iTwinMobile = ITwinMobile(viewController: self, itmMessenger: application.itmMessenger)
itmNativeUI = ITMNativeUI(viewController: self, itmMessenger: application.itmMessenger)
super.viewWillAppear(animated)
}

open override func viewWillDisappear(_ animated: Bool) {
iTwinMobile?.detach()
iTwinMobile = nil
itmNativeUI?.detach()
itmNativeUI = nil
super.viewWillDisappear(animated)
}

Expand Down

0 comments on commit ef78f76

Please sign in to comment.