Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Oct 20, 2023
1 parent a5f8644 commit 023c982
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Sources/TestRunner/SceneRunner+Create.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extension SceneRunner {
* we can access the springboard app using its bundle id: private static `let springboardApp = XCUIApplication(bundleIdentifier: "com.apple.springboard")`
*/
@objc open func createXCUIApp() -> XCUIApplication {
let app = XCUIApplication() // Creates a new instance of XCUIApplication
let app: XCUIApplication = .init() // Creates a new instance of XCUIApplication
app.launch() // launches it
return app // and returns it.
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/TestRunner/SceneRunner+Type.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
/**
* `SceneRunner` Extension
* This extension adds additional functionality to the `SceneRunner` class.
* - Description: This extension adds additional functionality to the `SceneRunner` class.
*/
extension SceneRunner {
/**
Expand Down
10 changes: 6 additions & 4 deletions Sources/TestRunner/protocol/SceneKind+Getter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import XCTest

extension SceneKind {
/**
* The `app` computed property returns the `XCUIApplication` instance associated with the `sceneRunner`.
* - Description: Provides a convenient way to access the `XCUIApplication` instance.
* - Fixme: ⚠️️ Further documentation is needed to explain the usage of `SceneKind` in different scenarios.
* The `app` computed property returns the `XCUIApplication` instance associated with the `sceneRunner`
* - Description: Provides a convenient way to access the `XCUIApplication` instance
* - Fixme: ⚠️️ Further documentation is needed to explain the usage of `SceneKind` in different scenarios
*/
public var app: XCUIApplication { sceneRunner.app }
public var app: XCUIApplication {
sceneRunner.app
}
}
#endif
4 changes: 2 additions & 2 deletions TestRunnerApp/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import UIKit
class AppDelegate: UIResponder, UIApplicationDelegate {
lazy var window: UIWindow? = {
let win = UIWindow(frame: UIScreen.main.bounds)
let vc = MainVC()
let vc: MainVC = .init()
win.rootViewController = vc
win.makeKeyAndVisible()/*Important since we have no Main storyboard anymore*/
return win
Expand All @@ -25,4 +25,4 @@ class MainVC: UIViewController {
}
override var prefersStatusBarHidden: Bool { true }
}
class MainView: UIView { }
class MainView: UIView {}

0 comments on commit 023c982

Please sign in to comment.