From 34479e252418d349bbaf498db6cae89279090605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Wos=CC=81ko?= Date: Wed, 2 Sep 2020 23:41:26 +0200 Subject: [PATCH] Create TV target, add sample --- MaterialForm.xcodeproj/project.pbxproj | 167 +++++++++++++++++- SampleApp/Main.storyboard | 5 +- SampleTVApp/AppDelegate.swift | 21 +++ .../Content.imageset/Contents.json | 11 ++ .../Back.imagestacklayer/Contents.json | 6 + .../Contents.json | 17 ++ .../Content.imageset/Contents.json | 11 ++ .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 11 ++ .../Middle.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 16 ++ .../Back.imagestacklayer/Contents.json | 6 + .../App Icon.imagestack/Contents.json | 17 ++ .../Content.imageset/Contents.json | 16 ++ .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 16 ++ .../Middle.imagestacklayer/Contents.json | 6 + .../Contents.json | 32 ++++ .../Contents.json | 24 +++ .../Top Shelf Image.imageset/Contents.json | 24 +++ SampleTVApp/Assets.xcassets/Contents.json | 6 + .../Base.lproj/LaunchScreen.storyboard | 24 +++ SampleTVApp/Base.lproj/Main.storyboard | 60 +++++++ SampleTVApp/Info.plist | 34 ++++ SampleTVApp/ViewController.swift | 30 ++++ 25 files changed, 576 insertions(+), 2 deletions(-) create mode 100644 SampleTVApp/AppDelegate.swift create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json create mode 100644 SampleTVApp/Assets.xcassets/Contents.json create mode 100644 SampleTVApp/Base.lproj/LaunchScreen.storyboard create mode 100644 SampleTVApp/Base.lproj/Main.storyboard create mode 100644 SampleTVApp/Info.plist create mode 100644 SampleTVApp/ViewController.swift diff --git a/MaterialForm.xcodeproj/project.pbxproj b/MaterialForm.xcodeproj/project.pbxproj index 2e99053..3282283 100644 --- a/MaterialForm.xcodeproj/project.pbxproj +++ b/MaterialForm.xcodeproj/project.pbxproj @@ -7,6 +7,13 @@ objects = { /* Begin PBXBuildFile section */ + 21D7213C25004312001F3A99 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 21D7213B25004312001F3A99 /* AppDelegate.swift */; }; + 21D7213E25004312001F3A99 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 21D7213D25004312001F3A99 /* ViewController.swift */; }; + 21D7214125004312001F3A99 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 21D7213F25004312001F3A99 /* Main.storyboard */; }; + 21D7214325004314001F3A99 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 21D7214225004314001F3A99 /* Assets.xcassets */; }; + 21D7214625004314001F3A99 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 21D7214425004314001F3A99 /* LaunchScreen.storyboard */; }; + 21D7214B2500442A001F3A99 /* MaterialForm.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C88688CD234200A000C8ED7D /* MaterialForm.framework */; }; + 21D7214C2500442A001F3A99 /* MaterialForm.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = C88688CD234200A000C8ED7D /* MaterialForm.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; C8188C9F234395FC0097FB9E /* KeyboardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8188C9E234395FC0097FB9E /* KeyboardView.swift */; }; C8188CA1234495150097FB9E /* UnderlyingField.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8188CA0234495150097FB9E /* UnderlyingField.swift */; }; C823E9BD2344C57A00AD214B /* MaterialUITextField+Components.swift in Sources */ = {isa = PBXBuildFile; fileRef = C823E9BC2344C57A00AD214B /* MaterialUITextField+Components.swift */; }; @@ -40,6 +47,13 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ + 21D7214D2500442A001F3A99 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = C88688C4234200A000C8ED7D /* Project object */; + proxyType = 1; + remoteGlobalIDString = C88688CC234200A000C8ED7D; + remoteInfo = MaterialForm; + }; C89455DB23BF8FE600E001EC /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = C88688C4234200A000C8ED7D /* Project object */; @@ -50,6 +64,17 @@ /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ + 21D7214F2500442A001F3A99 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 21D7214C2500442A001F3A99 /* MaterialForm.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; C8E10E0323BB778900D4F425 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; @@ -64,6 +89,13 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 21D7213925004312001F3A99 /* SampleTVApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SampleTVApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 21D7213B25004312001F3A99 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 21D7213D25004312001F3A99 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 21D7214025004312001F3A99 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 21D7214225004314001F3A99 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 21D7214525004314001F3A99 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 21D7214725004314001F3A99 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C8188C9E234395FC0097FB9E /* KeyboardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyboardView.swift; sourceTree = ""; }; C8188CA0234495150097FB9E /* UnderlyingField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnderlyingField.swift; sourceTree = ""; }; C823E9BC2344C57A00AD214B /* MaterialUITextField+Components.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MaterialUITextField+Components.swift"; sourceTree = ""; }; @@ -99,6 +131,14 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 21D7213625004312001F3A99 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 21D7214B2500442A001F3A99 /* MaterialForm.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; C88688CA234200A000C8ED7D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -117,6 +157,19 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 21D7213A25004312001F3A99 /* SampleTVApp */ = { + isa = PBXGroup; + children = ( + 21D7213B25004312001F3A99 /* AppDelegate.swift */, + 21D7213D25004312001F3A99 /* ViewController.swift */, + 21D7213F25004312001F3A99 /* Main.storyboard */, + 21D7214225004314001F3A99 /* Assets.xcassets */, + 21D7214425004314001F3A99 /* LaunchScreen.storyboard */, + 21D7214725004314001F3A99 /* Info.plist */, + ); + path = SampleTVApp; + sourceTree = ""; + }; C8188C9D234395ED0097FB9E /* KeyboardView */ = { isa = PBXGroup; children = ( @@ -142,6 +195,7 @@ children = ( CCA301CC2381DC6A00645A67 /* Sources */, C88688DD234200DA00C8ED7D /* SampleApp */, + 21D7213A25004312001F3A99 /* SampleTVApp */, C88688CE234200A000C8ED7D /* Products */, C88688F22342019600C8ED7D /* Frameworks */, ); @@ -152,6 +206,7 @@ children = ( C88688CD234200A000C8ED7D /* MaterialForm.framework */, C88688DC234200DA00C8ED7D /* SampleApp.app */, + 21D7213925004312001F3A99 /* SampleTVApp.app */, ); name = Products; sourceTree = ""; @@ -257,6 +312,25 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ + 21D7213825004312001F3A99 /* SampleTVApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 21D7214A25004314001F3A99 /* Build configuration list for PBXNativeTarget "SampleTVApp" */; + buildPhases = ( + 21D7213525004312001F3A99 /* Sources */, + 21D7213625004312001F3A99 /* Frameworks */, + 21D7213725004312001F3A99 /* Resources */, + 21D7214F2500442A001F3A99 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 21D7214E2500442A001F3A99 /* PBXTargetDependency */, + ); + name = SampleTVApp; + productName = SampleTVApp; + productReference = 21D7213925004312001F3A99 /* SampleTVApp.app */; + productType = "com.apple.product-type.application"; + }; C88688CC234200A000C8ED7D /* MaterialForm */ = { isa = PBXNativeTarget; buildConfigurationList = C88688D5234200A000C8ED7D /* Build configuration list for PBXNativeTarget "MaterialForm" */; @@ -302,10 +376,13 @@ C88688C4234200A000C8ED7D /* Project object */ = { isa = PBXProject; attributes = { - LastSwiftUpdateCheck = 1100; + LastSwiftUpdateCheck = 1160; LastUpgradeCheck = 1110; ORGANIZATIONNAME = MakeAWishFoundation; TargetAttributes = { + 21D7213825004312001F3A99 = { + CreatedOnToolsVersion = 11.6; + }; C88688CC234200A000C8ED7D = { CreatedOnToolsVersion = 11.1; LastSwiftMigration = 1110; @@ -333,11 +410,22 @@ targets = ( C88688CC234200A000C8ED7D /* MaterialForm */, C88688DB234200DA00C8ED7D /* SampleApp */, + 21D7213825004312001F3A99 /* SampleTVApp */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 21D7213725004312001F3A99 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 21D7214625004314001F3A99 /* LaunchScreen.storyboard in Resources */, + 21D7214325004314001F3A99 /* Assets.xcassets in Resources */, + 21D7214125004312001F3A99 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; C88688CB234200A000C8ED7D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -359,6 +447,15 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 21D7213525004312001F3A99 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 21D7213E25004312001F3A99 /* ViewController.swift in Sources */, + 21D7213C25004312001F3A99 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; C88688C9234200A000C8ED7D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -399,6 +496,11 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ + 21D7214E2500442A001F3A99 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = C88688CC234200A000C8ED7D /* MaterialForm */; + targetProxy = 21D7214D2500442A001F3A99 /* PBXContainerItemProxy */; + }; C89455DC23BF8FE600E001EC /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = C88688CC234200A000C8ED7D /* MaterialForm */; @@ -407,6 +509,22 @@ /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ + 21D7213F25004312001F3A99 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 21D7214025004312001F3A99 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 21D7214425004314001F3A99 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 21D7214525004314001F3A99 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; C88688E9234200DB00C8ED7D /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( @@ -418,6 +536,44 @@ /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ + 21D7214825004314001F3A99 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = SampleTVApp/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.girappe.material.SampleTVApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 13.4; + }; + name = Debug; + }; + 21D7214925004314001F3A99 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = SampleTVApp/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.girappe.material.SampleTVApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 13.4; + }; + name = Release; + }; C88688D3234200A000C8ED7D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -648,6 +804,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 21D7214A25004314001F3A99 /* Build configuration list for PBXNativeTarget "SampleTVApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 21D7214825004314001F3A99 /* Debug */, + 21D7214925004314001F3A99 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; C88688C7234200A000C8ED7D /* Build configuration list for PBXProject "MaterialForm" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/SampleApp/Main.storyboard b/SampleApp/Main.storyboard index 4c39dcf..3406159 100644 --- a/SampleApp/Main.storyboard +++ b/SampleApp/Main.storyboard @@ -1,5 +1,5 @@ - + @@ -52,6 +52,9 @@ + + + diff --git a/SampleTVApp/AppDelegate.swift b/SampleTVApp/AppDelegate.swift new file mode 100644 index 0000000..0d52f71 --- /dev/null +++ b/SampleTVApp/AppDelegate.swift @@ -0,0 +1,21 @@ +// +// AppDelegate.swift +// SampleTVApp +// +// Created by Przemysław Wośko on 02/09/2020. +// Copyright © 2020 MakeAWishFoundation. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + return true + } + +} + diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..2e00335 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,11 @@ +{ + "images" : [ + { + "idiom" : "tv" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json new file mode 100644 index 0000000..de59d88 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + }, + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ] +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..2e00335 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,11 @@ +{ + "images" : [ + { + "idiom" : "tv" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..2e00335 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,11 @@ +{ + "images" : [ + { + "idiom" : "tv" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..795cce1 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json new file mode 100644 index 0000000..de59d88 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + }, + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ] +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..795cce1 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..795cce1 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json new file mode 100644 index 0000000..f47ba43 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json @@ -0,0 +1,32 @@ +{ + "assets" : [ + { + "filename" : "App Icon - App Store.imagestack", + "idiom" : "tv", + "role" : "primary-app-icon", + "size" : "1280x768" + }, + { + "filename" : "App Icon.imagestack", + "idiom" : "tv", + "role" : "primary-app-icon", + "size" : "400x240" + }, + { + "filename" : "Top Shelf Image Wide.imageset", + "idiom" : "tv", + "role" : "top-shelf-image-wide", + "size" : "2320x720" + }, + { + "filename" : "Top Shelf Image.imageset", + "idiom" : "tv", + "role" : "top-shelf-image", + "size" : "1920x720" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json new file mode 100644 index 0000000..b65f0cd --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json @@ -0,0 +1,24 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + }, + { + "idiom" : "tv-marketing", + "scale" : "1x" + }, + { + "idiom" : "tv-marketing", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json new file mode 100644 index 0000000..b65f0cd --- /dev/null +++ b/SampleTVApp/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json @@ -0,0 +1,24 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + }, + { + "idiom" : "tv-marketing", + "scale" : "1x" + }, + { + "idiom" : "tv-marketing", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Assets.xcassets/Contents.json b/SampleTVApp/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SampleTVApp/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleTVApp/Base.lproj/LaunchScreen.storyboard b/SampleTVApp/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..660ba53 --- /dev/null +++ b/SampleTVApp/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SampleTVApp/Base.lproj/Main.storyboard b/SampleTVApp/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f382ddc --- /dev/null +++ b/SampleTVApp/Base.lproj/Main.storyboard @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SampleTVApp/Info.plist b/SampleTVApp/Info.plist new file mode 100644 index 0000000..25869ef --- /dev/null +++ b/SampleTVApp/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + arm64 + + UIUserInterfaceStyle + Automatic + + diff --git a/SampleTVApp/ViewController.swift b/SampleTVApp/ViewController.swift new file mode 100644 index 0000000..4349b79 --- /dev/null +++ b/SampleTVApp/ViewController.swift @@ -0,0 +1,30 @@ +// +// ViewController.swift +// SampleTVApp +// +// Created by Przemysław Wośko on 02/09/2020. +// Copyright © 2020 MakeAWishFoundation. All rights reserved. +// + +import UIKit +import MaterialForm + +class ViewController: UIViewController { + + @IBOutlet weak var exampleField: MaterialUITextField! + @IBOutlet weak var examplePasswordFiedl: MaterialUITextField! + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + + exampleField.style = MaterialUITextField.Style.rounded { it in + it.backgroundColor = .green + it.cornerRadius = 20 + it.defaultPlaceholderColor = .blue + } + } + + +} +