diff options
author | erdgeist <erdgeist@erdgeist.org> | 2023-05-26 00:06:06 +0200 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2023-05-26 00:06:06 +0200 |
commit | 825d3442c320c5567317109947c8d1267704645b (patch) | |
tree | f803c4c3524b1633cb6fef978d1e6c560fb2b1bb /CCCB Display |
Initial Commit
Diffstat (limited to 'CCCB Display')
-rw-r--r-- | CCCB Display/AppDelegate.swift | 36 | ||||
-rw-r--r-- | CCCB Display/Assets.xcassets/AccentColor.colorset/Contents.json | 11 | ||||
-rw-r--r-- | CCCB Display/Assets.xcassets/AppIcon.appiconset/Contents.json | 13 | ||||
-rw-r--r-- | CCCB Display/Assets.xcassets/Contents.json | 6 | ||||
-rw-r--r-- | CCCB Display/Base.lproj/LaunchScreen.storyboard | 25 | ||||
-rw-r--r-- | CCCB Display/Base.lproj/Main.storyboard | 24 | ||||
-rw-r--r-- | CCCB Display/Info.plist | 25 | ||||
-rw-r--r-- | CCCB Display/SceneDelegate.swift | 52 | ||||
-rw-r--r-- | CCCB Display/ViewController.swift | 19 |
9 files changed, 211 insertions, 0 deletions
diff --git a/CCCB Display/AppDelegate.swift b/CCCB Display/AppDelegate.swift new file mode 100644 index 0000000..8639c64 --- /dev/null +++ b/CCCB Display/AppDelegate.swift | |||
@@ -0,0 +1,36 @@ | |||
1 | // | ||
2 | // AppDelegate.swift | ||
3 | // CCCB Display | ||
4 | // | ||
5 | // Created by Dirk Engling on 26.05.23. | ||
6 | // | ||
7 | |||
8 | import UIKit | ||
9 | |||
10 | @main | ||
11 | class AppDelegate: UIResponder, UIApplicationDelegate { | ||
12 | |||
13 | |||
14 | |||
15 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
16 | // Override point for customization after application launch. | ||
17 | return true | ||
18 | } | ||
19 | |||
20 | // MARK: UISceneSession Lifecycle | ||
21 | |||
22 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { | ||
23 | // Called when a new scene session is being created. | ||
24 | // Use this method to select a configuration to create the new scene with. | ||
25 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) | ||
26 | } | ||
27 | |||
28 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { | ||
29 | // Called when the user discards a scene session. | ||
30 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. | ||
31 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. | ||
32 | } | ||
33 | |||
34 | |||
35 | } | ||
36 | |||
diff --git a/CCCB Display/Assets.xcassets/AccentColor.colorset/Contents.json b/CCCB Display/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/CCCB Display/Assets.xcassets/AccentColor.colorset/Contents.json | |||
@@ -0,0 +1,11 @@ | |||
1 | { | ||
2 | "colors" : [ | ||
3 | { | ||
4 | "idiom" : "universal" | ||
5 | } | ||
6 | ], | ||
7 | "info" : { | ||
8 | "author" : "xcode", | ||
9 | "version" : 1 | ||
10 | } | ||
11 | } | ||
diff --git a/CCCB Display/Assets.xcassets/AppIcon.appiconset/Contents.json b/CCCB Display/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/CCCB Display/Assets.xcassets/AppIcon.appiconset/Contents.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "images" : [ | ||
3 | { | ||
4 | "idiom" : "universal", | ||
5 | "platform" : "ios", | ||
6 | "size" : "1024x1024" | ||
7 | } | ||
8 | ], | ||
9 | "info" : { | ||
10 | "author" : "xcode", | ||
11 | "version" : 1 | ||
12 | } | ||
13 | } | ||
diff --git a/CCCB Display/Assets.xcassets/Contents.json b/CCCB Display/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/CCCB Display/Assets.xcassets/Contents.json | |||
@@ -0,0 +1,6 @@ | |||
1 | { | ||
2 | "info" : { | ||
3 | "author" : "xcode", | ||
4 | "version" : 1 | ||
5 | } | ||
6 | } | ||
diff --git a/CCCB Display/Base.lproj/LaunchScreen.storyboard b/CCCB Display/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/CCCB Display/Base.lproj/LaunchScreen.storyboard | |||
@@ -0,0 +1,25 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | ||
3 | <dependencies> | ||
4 | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/> | ||
5 | <capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
6 | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
7 | </dependencies> | ||
8 | <scenes> | ||
9 | <!--View Controller--> | ||
10 | <scene sceneID="EHf-IW-A2E"> | ||
11 | <objects> | ||
12 | <viewController id="01J-lp-oVM" sceneMemberID="viewController"> | ||
13 | <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | ||
14 | <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
15 | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
16 | <color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> | ||
17 | <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> | ||
18 | </view> | ||
19 | </viewController> | ||
20 | <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
21 | </objects> | ||
22 | <point key="canvasLocation" x="53" y="375"/> | ||
23 | </scene> | ||
24 | </scenes> | ||
25 | </document> | ||
diff --git a/CCCB Display/Base.lproj/Main.storyboard b/CCCB Display/Base.lproj/Main.storyboard new file mode 100644 index 0000000..25a7638 --- /dev/null +++ b/CCCB Display/Base.lproj/Main.storyboard | |||
@@ -0,0 +1,24 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r"> | ||
3 | <dependencies> | ||
4 | <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/> | ||
5 | <capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
6 | <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
7 | </dependencies> | ||
8 | <scenes> | ||
9 | <!--View Controller--> | ||
10 | <scene sceneID="tne-QT-ifu"> | ||
11 | <objects> | ||
12 | <viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController"> | ||
13 | <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> | ||
14 | <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
15 | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
16 | <color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> | ||
17 | <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> | ||
18 | </view> | ||
19 | </viewController> | ||
20 | <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> | ||
21 | </objects> | ||
22 | </scene> | ||
23 | </scenes> | ||
24 | </document> | ||
diff --git a/CCCB Display/Info.plist b/CCCB Display/Info.plist new file mode 100644 index 0000000..dd3c9af --- /dev/null +++ b/CCCB Display/Info.plist | |||
@@ -0,0 +1,25 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
3 | <plist version="1.0"> | ||
4 | <dict> | ||
5 | <key>UIApplicationSceneManifest</key> | ||
6 | <dict> | ||
7 | <key>UIApplicationSupportsMultipleScenes</key> | ||
8 | <false/> | ||
9 | <key>UISceneConfigurations</key> | ||
10 | <dict> | ||
11 | <key>UIWindowSceneSessionRoleApplication</key> | ||
12 | <array> | ||
13 | <dict> | ||
14 | <key>UISceneConfigurationName</key> | ||
15 | <string>Default Configuration</string> | ||
16 | <key>UISceneDelegateClassName</key> | ||
17 | <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string> | ||
18 | <key>UISceneStoryboardFile</key> | ||
19 | <string>Main</string> | ||
20 | </dict> | ||
21 | </array> | ||
22 | </dict> | ||
23 | </dict> | ||
24 | </dict> | ||
25 | </plist> | ||
diff --git a/CCCB Display/SceneDelegate.swift b/CCCB Display/SceneDelegate.swift new file mode 100644 index 0000000..2d9089a --- /dev/null +++ b/CCCB Display/SceneDelegate.swift | |||
@@ -0,0 +1,52 @@ | |||
1 | // | ||
2 | // SceneDelegate.swift | ||
3 | // CCCB Display | ||
4 | // | ||
5 | // Created by Dirk Engling on 26.05.23. | ||
6 | // | ||
7 | |||
8 | import UIKit | ||
9 | |||
10 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { | ||
11 | |||
12 | var window: UIWindow? | ||
13 | |||
14 | |||
15 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { | ||
16 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. | ||
17 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. | ||
18 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). | ||
19 | guard let _ = (scene as? UIWindowScene) else { return } | ||
20 | } | ||
21 | |||
22 | func sceneDidDisconnect(_ scene: UIScene) { | ||
23 | // Called as the scene is being released by the system. | ||
24 | // This occurs shortly after the scene enters the background, or when its session is discarded. | ||
25 | // Release any resources associated with this scene that can be re-created the next time the scene connects. | ||
26 | // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). | ||
27 | } | ||
28 | |||
29 | func sceneDidBecomeActive(_ scene: UIScene) { | ||
30 | // Called when the scene has moved from an inactive state to an active state. | ||
31 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. | ||
32 | } | ||
33 | |||
34 | func sceneWillResignActive(_ scene: UIScene) { | ||
35 | // Called when the scene will move from an active state to an inactive state. | ||
36 | // This may occur due to temporary interruptions (ex. an incoming phone call). | ||
37 | } | ||
38 | |||
39 | func sceneWillEnterForeground(_ scene: UIScene) { | ||
40 | // Called as the scene transitions from the background to the foreground. | ||
41 | // Use this method to undo the changes made on entering the background. | ||
42 | } | ||
43 | |||
44 | func sceneDidEnterBackground(_ scene: UIScene) { | ||
45 | // Called as the scene transitions from the foreground to the background. | ||
46 | // Use this method to save data, release shared resources, and store enough scene-specific state information | ||
47 | // to restore the scene back to its current state. | ||
48 | } | ||
49 | |||
50 | |||
51 | } | ||
52 | |||
diff --git a/CCCB Display/ViewController.swift b/CCCB Display/ViewController.swift new file mode 100644 index 0000000..53f3cee --- /dev/null +++ b/CCCB Display/ViewController.swift | |||
@@ -0,0 +1,19 @@ | |||
1 | // | ||
2 | // ViewController.swift | ||
3 | // CCCB Display | ||
4 | // | ||
5 | // Created by Dirk Engling on 26.05.23. | ||
6 | // | ||
7 | |||
8 | import UIKit | ||
9 | |||
10 | class ViewController: UIViewController { | ||
11 | |||
12 | override func viewDidLoad() { | ||
13 | super.viewDidLoad() | ||
14 | // Do any additional setup after loading the view. | ||
15 | } | ||
16 | |||
17 | |||
18 | } | ||
19 | |||