From 38ce21d1d15bb273dd72280d6b98bbab59d2478f Mon Sep 17 00:00:00 2001 From: Shorouq AlAnzi Date: Mon, 11 Oct 2021 21:47:51 +0300 Subject: [PATCH 1/2] created TasbihCounter2 project --- TasbihCounter3.xcodeproj/project.pbxproj | 346 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + TasbihCounter3/.DS_Store | Bin 0 -> 6148 bytes TasbihCounter3/AppDelegate.swift | 36 ++ TasbihCounter3/Assets.xcassets/.DS_Store | Bin 0 -> 6148 bytes .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 98 +++++ TasbihCounter3/Assets.xcassets/Contents.json | 6 + .../Base.lproj/LaunchScreen.storyboard | 25 ++ TasbihCounter3/Base.lproj/Main.storyboard | 116 ++++++ TasbihCounter3/Info.plist | 66 ++++ TasbihCounter3/SceneDelegate.swift | 52 +++ TasbihCounter3/ViewController.swift | 49 +++ 14 files changed, 820 insertions(+) create mode 100644 TasbihCounter3.xcodeproj/project.pbxproj create mode 100644 TasbihCounter3.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 TasbihCounter3.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 TasbihCounter3/.DS_Store create mode 100644 TasbihCounter3/AppDelegate.swift create mode 100644 TasbihCounter3/Assets.xcassets/.DS_Store create mode 100644 TasbihCounter3/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 TasbihCounter3/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 TasbihCounter3/Assets.xcassets/Contents.json create mode 100644 TasbihCounter3/Base.lproj/LaunchScreen.storyboard create mode 100644 TasbihCounter3/Base.lproj/Main.storyboard create mode 100644 TasbihCounter3/Info.plist create mode 100644 TasbihCounter3/SceneDelegate.swift create mode 100644 TasbihCounter3/ViewController.swift diff --git a/TasbihCounter3.xcodeproj/project.pbxproj b/TasbihCounter3.xcodeproj/project.pbxproj new file mode 100644 index 0000000..8cbfd44 --- /dev/null +++ b/TasbihCounter3.xcodeproj/project.pbxproj @@ -0,0 +1,346 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + BD4DBB1A2714A638005FA3FE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD4DBB192714A638005FA3FE /* AppDelegate.swift */; }; + BD4DBB1C2714A638005FA3FE /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD4DBB1B2714A638005FA3FE /* SceneDelegate.swift */; }; + BD4DBB1E2714A638005FA3FE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD4DBB1D2714A638005FA3FE /* ViewController.swift */; }; + BD4DBB212714A638005FA3FE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BD4DBB1F2714A638005FA3FE /* Main.storyboard */; }; + BD4DBB232714A639005FA3FE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BD4DBB222714A639005FA3FE /* Assets.xcassets */; }; + BD4DBB262714A639005FA3FE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BD4DBB242714A639005FA3FE /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + BD4DBB162714A638005FA3FE /* TasbihCounter3.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TasbihCounter3.app; sourceTree = BUILT_PRODUCTS_DIR; }; + BD4DBB192714A638005FA3FE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + BD4DBB1B2714A638005FA3FE /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + BD4DBB1D2714A638005FA3FE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + BD4DBB202714A638005FA3FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + BD4DBB222714A639005FA3FE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + BD4DBB252714A639005FA3FE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + BD4DBB272714A639005FA3FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + BD4DBB132714A638005FA3FE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + BD4DBB0D2714A638005FA3FE = { + isa = PBXGroup; + children = ( + BD4DBB182714A638005FA3FE /* TasbihCounter3 */, + BD4DBB172714A638005FA3FE /* Products */, + ); + sourceTree = ""; + }; + BD4DBB172714A638005FA3FE /* Products */ = { + isa = PBXGroup; + children = ( + BD4DBB162714A638005FA3FE /* TasbihCounter3.app */, + ); + name = Products; + sourceTree = ""; + }; + BD4DBB182714A638005FA3FE /* TasbihCounter3 */ = { + isa = PBXGroup; + children = ( + BD4DBB192714A638005FA3FE /* AppDelegate.swift */, + BD4DBB1B2714A638005FA3FE /* SceneDelegate.swift */, + BD4DBB1D2714A638005FA3FE /* ViewController.swift */, + BD4DBB1F2714A638005FA3FE /* Main.storyboard */, + BD4DBB222714A639005FA3FE /* Assets.xcassets */, + BD4DBB242714A639005FA3FE /* LaunchScreen.storyboard */, + BD4DBB272714A639005FA3FE /* Info.plist */, + ); + path = TasbihCounter3; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + BD4DBB152714A638005FA3FE /* TasbihCounter3 */ = { + isa = PBXNativeTarget; + buildConfigurationList = BD4DBB2A2714A639005FA3FE /* Build configuration list for PBXNativeTarget "TasbihCounter3" */; + buildPhases = ( + BD4DBB122714A638005FA3FE /* Sources */, + BD4DBB132714A638005FA3FE /* Frameworks */, + BD4DBB142714A638005FA3FE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = TasbihCounter3; + productName = TasbihCounter3; + productReference = BD4DBB162714A638005FA3FE /* TasbihCounter3.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + BD4DBB0E2714A638005FA3FE /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1250; + LastUpgradeCheck = 1250; + TargetAttributes = { + BD4DBB152714A638005FA3FE = { + CreatedOnToolsVersion = 12.5; + }; + }; + }; + buildConfigurationList = BD4DBB112714A638005FA3FE /* Build configuration list for PBXProject "TasbihCounter3" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = BD4DBB0D2714A638005FA3FE; + productRefGroup = BD4DBB172714A638005FA3FE /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + BD4DBB152714A638005FA3FE /* TasbihCounter3 */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + BD4DBB142714A638005FA3FE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BD4DBB262714A639005FA3FE /* LaunchScreen.storyboard in Resources */, + BD4DBB232714A639005FA3FE /* Assets.xcassets in Resources */, + BD4DBB212714A638005FA3FE /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + BD4DBB122714A638005FA3FE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BD4DBB1E2714A638005FA3FE /* ViewController.swift in Sources */, + BD4DBB1A2714A638005FA3FE /* AppDelegate.swift in Sources */, + BD4DBB1C2714A638005FA3FE /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + BD4DBB1F2714A638005FA3FE /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + BD4DBB202714A638005FA3FE /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + BD4DBB242714A639005FA3FE /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + BD4DBB252714A639005FA3FE /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + BD4DBB282714A639005FA3FE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 14.5; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + BD4DBB292714A639005FA3FE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 14.5; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + BD4DBB2B2714A639005FA3FE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = S2N5ABFX6X; + INFOPLIST_FILE = TasbihCounter3/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.shuruq.TasbihCounter3; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + BD4DBB2C2714A639005FA3FE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = S2N5ABFX6X; + INFOPLIST_FILE = TasbihCounter3/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.shuruq.TasbihCounter3; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + BD4DBB112714A638005FA3FE /* Build configuration list for PBXProject "TasbihCounter3" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BD4DBB282714A639005FA3FE /* Debug */, + BD4DBB292714A639005FA3FE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + BD4DBB2A2714A639005FA3FE /* Build configuration list for PBXNativeTarget "TasbihCounter3" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BD4DBB2B2714A639005FA3FE /* Debug */, + BD4DBB2C2714A639005FA3FE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = BD4DBB0E2714A638005FA3FE /* Project object */; +} diff --git a/TasbihCounter3.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/TasbihCounter3.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/TasbihCounter3.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/TasbihCounter3.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/TasbihCounter3.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/TasbihCounter3.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/TasbihCounter3/.DS_Store b/TasbihCounter3/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..6ab0fba79b44451b8b66128ac13e997d6841e734 GIT binary patch literal 6148 zcmeHK!A`?440XnY1{~OtW4>Twd_h)~FW8X_Y(q?_RVxM($DH?Dd=Y=Zb8J=H+6u%0 z5V9rbC61jsFIC+Tk;`6IQ=%~uji8K!6Eq#d^Qh1<(}5;k0f0l8lc3Lc36AlKK`{zq2I3?XD4|ZT7*4`r_v#lE zqo9P7)60j`Cp-R;g}C%|pvM5>LIP`y0b}5Rfg>4@x&B}G-~SJyY-kJ^1OJHuH_YdG zh8<~bZS9R~t%u%1S=cWMHX-PwQVd@%#TU>duzT(RgJKkf1!6w}i3V$ofgfey1NH}6 A?*IS* literal 0 HcmV?d00001 diff --git a/TasbihCounter3/AppDelegate.swift b/TasbihCounter3/AppDelegate.swift new file mode 100644 index 0000000..c10a813 --- /dev/null +++ b/TasbihCounter3/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// TasbihCounter3 +// +// Created by Shorouq AlAnzi on 05/03/1443 AH. +// + +import UIKit + +@main +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) { + // 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. + } + + +} + diff --git a/TasbihCounter3/Assets.xcassets/.DS_Store b/TasbihCounter3/Assets.xcassets/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ba1503663e508c23fd4644a2e16fae64f1e518f7 GIT binary patch literal 6148 zcmeHKO-sW-5S^_>Dqf0s@VLJ~=*eqZzHc$|IDdKTfqAkSFQhOVig4DR+96yUu( zr!mcOEvdeLYq~^C_i{}y7~N!#qv^cJOH1sn3pX#)be0t}aCpu4yY0ug8-MX5e)&}Y z?fieIGvr<3x|KXv$oE0|&(?3r`S|Kk-j{s0mhVAp=0zjdPTZC}IafDVz!h)>>I$G{ zvkguay>$g#0aswB0KXq1oG~%16y?={Mvef$KEh(Smv1Xz zl#Y0`d5K}AsB{XlGM-~A2RoqzSsn2x(UZuFB;6_R@=5i^%fQum>`39I6R*Hzg{6j!w@WvJR HRRul)`X+2{ literal 0 HcmV?d00001 diff --git a/TasbihCounter3/Assets.xcassets/AccentColor.colorset/Contents.json b/TasbihCounter3/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/TasbihCounter3/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/TasbihCounter3/Assets.xcassets/AppIcon.appiconset/Contents.json b/TasbihCounter3/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/TasbihCounter3/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/TasbihCounter3/Assets.xcassets/Contents.json b/TasbihCounter3/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/TasbihCounter3/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/TasbihCounter3/Base.lproj/LaunchScreen.storyboard b/TasbihCounter3/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/TasbihCounter3/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TasbihCounter3/Base.lproj/Main.storyboard b/TasbihCounter3/Base.lproj/Main.storyboard new file mode 100644 index 0000000..127e747 --- /dev/null +++ b/TasbihCounter3/Base.lproj/Main.storyboard @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TasbihCounter3/Info.plist b/TasbihCounter3/Info.plist new file mode 100644 index 0000000..5b531f7 --- /dev/null +++ b/TasbihCounter3/Info.plist @@ -0,0 +1,66 @@ + + + + + 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 + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + UIApplicationSupportsIndirectInputEvents + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/TasbihCounter3/SceneDelegate.swift b/TasbihCounter3/SceneDelegate.swift new file mode 100644 index 0000000..f568631 --- /dev/null +++ b/TasbihCounter3/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// TasbihCounter3 +// +// Created by Shorouq AlAnzi on 05/03/1443 AH. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + 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 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. + } + + +} + diff --git a/TasbihCounter3/ViewController.swift b/TasbihCounter3/ViewController.swift new file mode 100644 index 0000000..0ba59ab --- /dev/null +++ b/TasbihCounter3/ViewController.swift @@ -0,0 +1,49 @@ +// +// ViewController.swift +// TasbihCounter3 +// +// Created by Shorouq AlAnzi on 05/03/1443 AH. +// + +import UIKit + +class ViewController: UIViewController { + + @IBOutlet weak var DisplayLabel: UILabel! + var counter = 0 + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + + @IBAction func resetButton(_ sender: UIButton) { + counter = 0 + DisplayLabel.text = counter.description + } + + + @IBAction func CounterPressed(_ sender: UIButton) { + addOneTocounter() + } + + + @IBAction func discountPressed(_ sender: UIButton) { + subOneToCounter() + } + + func addOneTocounter(){ + counter += 1 + DisplayLabel.text = counter.description + print("Number display \(counter)") + } + func subOneToCounter(){ + counter -= 1 + if (counter >= 1){ + counter -= 1 + DisplayLabel.text = counter.description + } + } +} + From e9cc82faf3e3620a2f0453913788f6509c81486e Mon Sep 17 00:00:00 2001 From: Shuruq1414 <91871792+Shuruq1414@users.noreply.github.com> Date: Mon, 11 Oct 2021 23:34:47 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index ccfa3e6..50a8c09 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,8 @@ Second App consisting of a Tasbih counter. ## Deadline Monday 11th October 9:15 am + + + +https://user-images.githubusercontent.com/91871792/136852001-38f6e627-42a0-4155-a505-c531a66fb3da.mp4 +