Skip to content

Commit 51b24b7

Browse files
author
Mithun
committedJul 11, 2019
Cleaning up code: Spacing / Intendation
1 parent 6677003 commit 51b24b7

File tree

3 files changed

+13
-22
lines changed

3 files changed

+13
-22
lines changed
 

‎DesignCode/AppDelegate.swift

-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import UIKit
1111
@UIApplicationMain
1212
class AppDelegate: UIResponder, UIApplicationDelegate {
1313

14-
15-
1614
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1715
// Override point for customization after application launch.
1816
return true
@@ -31,7 +29,4 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3129
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
3230
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
3331
}
34-
35-
3632
}
37-

‎DesignCode/ContentView.swift

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88

99
import SwiftUI
1010

11-
struct ContentView : View {
12-
var body: some View {
13-
Text("Hello World")
14-
}
11+
struct ContentView: View {
12+
var body: some View {
13+
Text("Hello World")
14+
}
1515
}
1616

1717
#if DEBUG
18-
struct ContentView_Previews : PreviewProvider {
19-
static var previews: some View {
20-
ContentView()
21-
}
18+
struct ContentView_Previews: PreviewProvider {
19+
static var previews: some View {
20+
ContentView()
21+
}
2222
}
2323
#endif

‎DesignCode/SceneDelegate.swift

+5-9
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,24 @@
66
// Copyright © 2019 Mithun. All rights reserved.
77
//
88

9-
import UIKit
109
import SwiftUI
10+
import UIKit
1111

1212
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
1313

1414
var window: UIWindow?
1515

16-
1716
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
1817
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
1918
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
2019
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
2120

2221
// Use a UIHostingController as window root view controller
2322
if let windowScene = scene as? UIWindowScene {
24-
let window = UIWindow(windowScene: windowScene)
25-
window.rootViewController = UIHostingController(rootView: ContentView())
26-
self.window = window
27-
window.makeKeyAndVisible()
23+
let window = UIWindow(windowScene: windowScene)
24+
window.rootViewController = UIHostingController(rootView: ContentView())
25+
self.window = window
26+
window.makeKeyAndVisible()
2827
}
2928
}
3029

@@ -55,7 +54,4 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
5554
// Use this method to save data, release shared resources, and store enough scene-specific state information
5655
// to restore the scene back to its current state.
5756
}
58-
59-
6057
}
61-

0 commit comments

Comments
 (0)
Please sign in to comment.