Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBarnegren committed Mar 6, 2021
1 parent c0c99b0 commit a882631
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 77 deletions.
8 changes: 0 additions & 8 deletions MirrorUI/MirrorUI/MirrorView/MirrorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,3 @@ public struct MirrorView: View {
return AnyView(text)
}
}
/*
struct MirrorControlsView_Previews: PreviewProvider {
static var previews: some View {
let settings = Settings()
MirrorView(object: settings)
}
}
*/
2 changes: 0 additions & 2 deletions MirrorUI/MirrorUI/MirrorView/PropertyNameFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ extension Optional where Wrapped == Bool {
}
}
}


2 changes: 0 additions & 2 deletions MirrorUI/MirrorUI/PropertyWrapper/ControlProperties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@
import Foundation

public struct ControlProperties {

var storage = [String: Any]()
}

2 changes: 0 additions & 2 deletions MirrorUI/MirrorUI/PropertyWrapper/MirrorUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ protocol MirrorControl {
}
}



extension MirrorUI: MirrorControl {

var mirrorObject: AnyObject {
Expand Down
1 change: 0 additions & 1 deletion MirrorUI/MirrorUI/View Mapping/ViewMapping+Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ extension ViewMapping {
return mapping
}()
}

2 changes: 0 additions & 2 deletions MirrorUI/MirrorUITests/PropertyNameFormatterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,5 @@ class PropertyNameFormatterTests: XCTestCase {
test("my_property", "My Property")
test("my_property2", "My Property 2")
test("my_property24", "My Property 24")

}

}
8 changes: 0 additions & 8 deletions MirrorUIExample/MirrorUIExample/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,16 @@ import UIKit
class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}

// MARK: UISceneSession Lifecycle

func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}

func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}


}

35 changes: 6 additions & 29 deletions MirrorUIExample/MirrorUIExample/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,17 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {


func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
guard let _ = (scene as? UIWindowScene) else { return }
}

func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead).
}

func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}

func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}

func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}
func sceneDidDisconnect(_ scene: UIScene) {}

func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
func sceneDidBecomeActive(_ scene: UIScene) {}

func sceneWillResignActive(_ scene: UIScene) {}

func sceneWillEnterForeground(_ scene: UIScene) {}

func sceneDidEnterBackground(_ scene: UIScene) {}
}

3 changes: 0 additions & 3 deletions MirrorUIExample/MirrorUIExample/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,4 @@ class ViewController: UIViewController {
super.viewDidLayoutSubviews()
settingsViewController.view.frame = view.bounds
}


}

13 changes: 2 additions & 11 deletions MirrorUIExample/MirrorUIExample_macOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,8 @@ import Cocoa
@main
class AppDelegate: NSObject, NSApplicationDelegate {




func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
}

func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
}

func applicationDidFinishLaunching(_ aNotification: Notification) {}

func applicationWillTerminate(_ aNotification: Notification) {}
}

9 changes: 0 additions & 9 deletions MirrorUIExample/MirrorUIExample_macOS/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,4 @@ class ViewController: NSViewController {
super.viewDidLayout()
mirrorHostingView.frame = view.bounds
}

override var representedObject: Any? {
didSet {
// Update the view, if already loaded.
}
}


}

0 comments on commit a882631

Please sign in to comment.