Skip to content

Commit

Permalink
create
Browse files Browse the repository at this point in the history
  • Loading branch information
duweiwang committed Aug 26, 2022
1 parent 9dc331d commit 526aa65
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 134 deletions.
18 changes: 0 additions & 18 deletions ios-playground.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@

/* Begin PBXBuildFile section */
94A5DEF928B4822900724506 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94A5DEF828B4822900724506 /* AppDelegate.swift */; };
94A5DEFB28B4822900724506 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94A5DEFA28B4822900724506 /* SceneDelegate.swift */; };
94A5DEFD28B4822900724506 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94A5DEFC28B4822900724506 /* ViewController.swift */; };
94A5DF0028B4822900724506 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 94A5DEFE28B4822900724506 /* Main.storyboard */; };
94A5DF0228B4822B00724506 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 94A5DF0128B4822B00724506 /* Assets.xcassets */; };
94A5DF0528B4822B00724506 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 94A5DF0328B4822B00724506 /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
94A5DEF528B4822900724506 /* ios-playground.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ios-playground.app"; sourceTree = BUILT_PRODUCTS_DIR; };
94A5DEF828B4822900724506 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
94A5DEFA28B4822900724506 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
94A5DEFC28B4822900724506 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
94A5DEFF28B4822900724506 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
94A5DF0128B4822B00724506 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
94A5DF0428B4822B00724506 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
94A5DF0628B4822B00724506 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -57,9 +53,7 @@
isa = PBXGroup;
children = (
94A5DEF828B4822900724506 /* AppDelegate.swift */,
94A5DEFA28B4822900724506 /* SceneDelegate.swift */,
94A5DEFC28B4822900724506 /* ViewController.swift */,
94A5DEFE28B4822900724506 /* Main.storyboard */,
94A5DF0128B4822B00724506 /* Assets.xcassets */,
94A5DF0328B4822B00724506 /* LaunchScreen.storyboard */,
94A5DF0628B4822B00724506 /* Info.plist */,
Expand Down Expand Up @@ -127,7 +121,6 @@
files = (
94A5DF0528B4822B00724506 /* LaunchScreen.storyboard in Resources */,
94A5DF0228B4822B00724506 /* Assets.xcassets in Resources */,
94A5DF0028B4822900724506 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -140,21 +133,12 @@
files = (
94A5DEFD28B4822900724506 /* ViewController.swift in Sources */,
94A5DEF928B4822900724506 /* AppDelegate.swift in Sources */,
94A5DEFB28B4822900724506 /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
94A5DEFE28B4822900724506 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
94A5DEFF28B4822900724506 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
94A5DF0328B4822B00724506 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
Expand Down Expand Up @@ -292,7 +276,6 @@
INFOPLIST_FILE = "ios-playground/Info.plist";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
LD_RUNPATH_SEARCH_PATHS = (
Expand Down Expand Up @@ -320,7 +303,6 @@
INFOPLIST_FILE = "ios-playground/Info.plist";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
29 changes: 10 additions & 19 deletions ios-playground/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,19 @@ import UIKit

@main
class AppDelegate: UIResponder, UIApplicationDelegate {



var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
window = UIWindow(frame: UIScreen.main.bounds)
window?.backgroundColor = .white
let vc = ViewController()
window?.rootViewController = vc
window?.makeKeyAndVisible()
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.
}




}

24 changes: 0 additions & 24 deletions ios-playground/Base.lproj/Main.storyboard

This file was deleted.

22 changes: 1 addition & 21 deletions ios-playground/Info.plist
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
</dict>
<dict/>
</plist>
52 changes: 0 additions & 52 deletions ios-playground/SceneDelegate.swift

This file was deleted.

0 comments on commit 526aa65

Please sign in to comment.