diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..f1e95c4 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index ccfa3e6..4966182 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,16 @@ Second App consisting of a Tasbih counter. ## Description 1. Create TasbihCounter App. + press counter increes 1 + press dis counter decrees -1 + press reselt come 0 +https://user-images.githubusercontent.com/91885048/136899717-0edec610-791d-4d84-be09-8bda9e660145.mp4 +https://user-images.githubusercontent.com/91885048/136899794-ae0388ea-9cea-4d6c-b868-ef58297d82dd.mp4 + + + ## Deadline Monday 11th October 9:15 am + + diff --git a/Simulator Screen Recording - iPhone 12 Pro - 2021-10-11 at 21.27.45.mp4 b/Simulator Screen Recording - iPhone 12 Pro - 2021-10-11 at 21.27.45.mp4 new file mode 100644 index 0000000..c7d3126 Binary files /dev/null and b/Simulator Screen Recording - iPhone 12 Pro - 2021-10-11 at 21.27.45.mp4 differ diff --git a/Simulator Screen Recording - iPhone 12 Pro - 2021-10-11 at 21.28.47.mp4 b/Simulator Screen Recording - iPhone 12 Pro - 2021-10-11 at 21.28.47.mp4 new file mode 100644 index 0000000..61adaed Binary files /dev/null and b/Simulator Screen Recording - iPhone 12 Pro - 2021-10-11 at 21.28.47.mp4 differ diff --git a/Tasbih.xcodeproj/project.pbxproj b/Tasbih.xcodeproj/project.pbxproj new file mode 100644 index 0000000..641a4bd --- /dev/null +++ b/Tasbih.xcodeproj/project.pbxproj @@ -0,0 +1,363 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + 18962F23271443DA00C92A7A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18962F22271443DA00C92A7A /* AppDelegate.swift */; }; + 18962F25271443DA00C92A7A /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18962F24271443DA00C92A7A /* SceneDelegate.swift */; }; + 18962F27271443DA00C92A7A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18962F26271443DA00C92A7A /* ViewController.swift */; }; + 18962F2A271443DA00C92A7A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 18962F28271443DA00C92A7A /* Main.storyboard */; }; + 18962F2C271443DB00C92A7A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 18962F2B271443DB00C92A7A /* Assets.xcassets */; }; + 18962F2F271443DB00C92A7A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 18962F2D271443DB00C92A7A /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 18962F1F271443DA00C92A7A /* Tasbih.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Tasbih.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 18962F22271443DA00C92A7A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 18962F24271443DA00C92A7A /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 18962F26271443DA00C92A7A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 18962F29271443DA00C92A7A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 18962F2B271443DB00C92A7A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 18962F2E271443DB00C92A7A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 18962F30271443DB00C92A7A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 18962F1C271443DA00C92A7A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 18962F16271443DA00C92A7A = { + isa = PBXGroup; + children = ( + 18962F21271443DA00C92A7A /* Tasbih */, + 18962F20271443DA00C92A7A /* Products */, + ); + sourceTree = ""; + }; + 18962F20271443DA00C92A7A /* Products */ = { + isa = PBXGroup; + children = ( + 18962F1F271443DA00C92A7A /* Tasbih.app */, + ); + name = Products; + sourceTree = ""; + }; + 18962F21271443DA00C92A7A /* Tasbih */ = { + isa = PBXGroup; + children = ( + 18962F22271443DA00C92A7A /* AppDelegate.swift */, + 18962F24271443DA00C92A7A /* SceneDelegate.swift */, + 18962F26271443DA00C92A7A /* ViewController.swift */, + 18962F28271443DA00C92A7A /* Main.storyboard */, + 18962F2B271443DB00C92A7A /* Assets.xcassets */, + 18962F2D271443DB00C92A7A /* LaunchScreen.storyboard */, + 18962F30271443DB00C92A7A /* Info.plist */, + ); + path = Tasbih; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 18962F1E271443DA00C92A7A /* Tasbih */ = { + isa = PBXNativeTarget; + buildConfigurationList = 18962F33271443DB00C92A7A /* Build configuration list for PBXNativeTarget "Tasbih" */; + buildPhases = ( + 18962F1B271443DA00C92A7A /* Sources */, + 18962F1C271443DA00C92A7A /* Frameworks */, + 18962F1D271443DA00C92A7A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Tasbih; + productName = Tasbih; + productReference = 18962F1F271443DA00C92A7A /* Tasbih.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 18962F17271443DA00C92A7A /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1300; + LastUpgradeCheck = 1300; + TargetAttributes = { + 18962F1E271443DA00C92A7A = { + CreatedOnToolsVersion = 13.0; + }; + }; + }; + buildConfigurationList = 18962F1A271443DA00C92A7A /* Build configuration list for PBXProject "Tasbih" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 18962F16271443DA00C92A7A; + productRefGroup = 18962F20271443DA00C92A7A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 18962F1E271443DA00C92A7A /* Tasbih */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 18962F1D271443DA00C92A7A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 18962F2F271443DB00C92A7A /* LaunchScreen.storyboard in Resources */, + 18962F2C271443DB00C92A7A /* Assets.xcassets in Resources */, + 18962F2A271443DA00C92A7A /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 18962F1B271443DA00C92A7A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 18962F27271443DA00C92A7A /* ViewController.swift in Sources */, + 18962F23271443DA00C92A7A /* AppDelegate.swift in Sources */, + 18962F25271443DA00C92A7A /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 18962F28271443DA00C92A7A /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 18962F29271443DA00C92A7A /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 18962F2D271443DB00C92A7A /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 18962F2E271443DB00C92A7A /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 18962F31271443DB00C92A7A /* 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++17"; + 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 = 15.0; + 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; + }; + 18962F32271443DB00C92A7A /* 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++17"; + 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 = 15.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 18962F34271443DB00C92A7A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Tasbih/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 = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.nadaalbalawi.Tasbih; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 18962F35271443DB00C92A7A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Tasbih/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 = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.nadaalbalawi.Tasbih; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 18962F1A271443DA00C92A7A /* Build configuration list for PBXProject "Tasbih" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 18962F31271443DB00C92A7A /* Debug */, + 18962F32271443DB00C92A7A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 18962F33271443DB00C92A7A /* Build configuration list for PBXNativeTarget "Tasbih" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 18962F34271443DB00C92A7A /* Debug */, + 18962F35271443DB00C92A7A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 18962F17271443DA00C92A7A /* Project object */; +} diff --git a/Tasbih.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Tasbih.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/Tasbih.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Tasbih.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Tasbih.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Tasbih.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Tasbih/.DS_Store b/Tasbih/.DS_Store new file mode 100644 index 0000000..9331397 Binary files /dev/null and b/Tasbih/.DS_Store differ diff --git a/Tasbih/AppDelegate.swift b/Tasbih/AppDelegate.swift new file mode 100644 index 0000000..e324915 --- /dev/null +++ b/Tasbih/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// Tasbih +// +// Created by apple 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/Tasbih/Assets.xcassets/.DS_Store b/Tasbih/Assets.xcassets/.DS_Store new file mode 100644 index 0000000..b18bbe3 Binary files /dev/null and b/Tasbih/Assets.xcassets/.DS_Store differ diff --git a/Tasbih/Assets.xcassets/AccentColor.colorset/Contents.json b/Tasbih/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/Tasbih/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Tasbih/Assets.xcassets/AppIcon.appiconset/Contents.json b/Tasbih/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/Tasbih/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/Tasbih/Assets.xcassets/Contents.json b/Tasbih/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Tasbih/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Tasbih/Base.lproj/LaunchScreen.storyboard b/Tasbih/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/Tasbih/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tasbih/Base.lproj/Main.storyboard b/Tasbih/Base.lproj/Main.storyboard new file mode 100644 index 0000000..1540b72 --- /dev/null +++ b/Tasbih/Base.lproj/Main.storyboard @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tasbih/Info.plist b/Tasbih/Info.plist new file mode 100644 index 0000000..dd3c9af --- /dev/null +++ b/Tasbih/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/Tasbih/SceneDelegate.swift b/Tasbih/SceneDelegate.swift new file mode 100644 index 0000000..6e9f9d8 --- /dev/null +++ b/Tasbih/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// Tasbih +// +// Created by apple 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/Tasbih/ViewController.swift b/Tasbih/ViewController.swift new file mode 100644 index 0000000..39df976 --- /dev/null +++ b/Tasbih/ViewController.swift @@ -0,0 +1,19 @@ +// +// ViewController.swift +// Tasbih +// +// Created by apple on 05/03/1443 AH. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/TasbihCounter2/.DS_Store b/TasbihCounter2/.DS_Store new file mode 100644 index 0000000..744f684 Binary files /dev/null and b/TasbihCounter2/.DS_Store differ diff --git a/TasbihCounter2/TasbihCounter2.xcodeproj/project.pbxproj b/TasbihCounter2/TasbihCounter2.xcodeproj/project.pbxproj new file mode 100644 index 0000000..86357ed --- /dev/null +++ b/TasbihCounter2/TasbihCounter2.xcodeproj/project.pbxproj @@ -0,0 +1,623 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + 18962EE72714189800C92A7A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18962EE62714189800C92A7A /* AppDelegate.swift */; }; + 18962EE92714189800C92A7A /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18962EE82714189800C92A7A /* SceneDelegate.swift */; }; + 18962EEB2714189800C92A7A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18962EEA2714189800C92A7A /* ViewController.swift */; }; + 18962EEE2714189800C92A7A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 18962EEC2714189800C92A7A /* Main.storyboard */; }; + 18962EF02714189900C92A7A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 18962EEF2714189900C92A7A /* Assets.xcassets */; }; + 18962EF32714189900C92A7A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 18962EF12714189900C92A7A /* LaunchScreen.storyboard */; }; + 18962EFE2714189900C92A7A /* TasbihCounter2Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18962EFD2714189900C92A7A /* TasbihCounter2Tests.swift */; }; + 18962F082714189900C92A7A /* TasbihCounter2UITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18962F072714189900C92A7A /* TasbihCounter2UITests.swift */; }; + 18962F0A2714189900C92A7A /* TasbihCounter2UITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18962F092714189900C92A7A /* TasbihCounter2UITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 18962EFA2714189900C92A7A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 18962EDB2714189800C92A7A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 18962EE22714189800C92A7A; + remoteInfo = TasbihCounter2; + }; + 18962F042714189900C92A7A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 18962EDB2714189800C92A7A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 18962EE22714189800C92A7A; + remoteInfo = TasbihCounter2; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 18962EE32714189800C92A7A /* TasbihCounter2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TasbihCounter2.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 18962EE62714189800C92A7A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 18962EE82714189800C92A7A /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 18962EEA2714189800C92A7A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 18962EED2714189800C92A7A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 18962EEF2714189900C92A7A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 18962EF22714189900C92A7A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 18962EF42714189900C92A7A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 18962EF92714189900C92A7A /* TasbihCounter2Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TasbihCounter2Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 18962EFD2714189900C92A7A /* TasbihCounter2Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TasbihCounter2Tests.swift; sourceTree = ""; }; + 18962F032714189900C92A7A /* TasbihCounter2UITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TasbihCounter2UITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 18962F072714189900C92A7A /* TasbihCounter2UITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TasbihCounter2UITests.swift; sourceTree = ""; }; + 18962F092714189900C92A7A /* TasbihCounter2UITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TasbihCounter2UITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 18962EE02714189800C92A7A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 18962EF62714189900C92A7A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 18962F002714189900C92A7A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 18962EDA2714189800C92A7A = { + isa = PBXGroup; + children = ( + 18962EE52714189800C92A7A /* TasbihCounter2 */, + 18962EFC2714189900C92A7A /* TasbihCounter2Tests */, + 18962F062714189900C92A7A /* TasbihCounter2UITests */, + 18962EE42714189800C92A7A /* Products */, + ); + sourceTree = ""; + }; + 18962EE42714189800C92A7A /* Products */ = { + isa = PBXGroup; + children = ( + 18962EE32714189800C92A7A /* TasbihCounter2.app */, + 18962EF92714189900C92A7A /* TasbihCounter2Tests.xctest */, + 18962F032714189900C92A7A /* TasbihCounter2UITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 18962EE52714189800C92A7A /* TasbihCounter2 */ = { + isa = PBXGroup; + children = ( + 18962EE62714189800C92A7A /* AppDelegate.swift */, + 18962EE82714189800C92A7A /* SceneDelegate.swift */, + 18962EEA2714189800C92A7A /* ViewController.swift */, + 18962EEC2714189800C92A7A /* Main.storyboard */, + 18962EEF2714189900C92A7A /* Assets.xcassets */, + 18962EF12714189900C92A7A /* LaunchScreen.storyboard */, + 18962EF42714189900C92A7A /* Info.plist */, + ); + path = TasbihCounter2; + sourceTree = ""; + }; + 18962EFC2714189900C92A7A /* TasbihCounter2Tests */ = { + isa = PBXGroup; + children = ( + 18962EFD2714189900C92A7A /* TasbihCounter2Tests.swift */, + ); + path = TasbihCounter2Tests; + sourceTree = ""; + }; + 18962F062714189900C92A7A /* TasbihCounter2UITests */ = { + isa = PBXGroup; + children = ( + 18962F072714189900C92A7A /* TasbihCounter2UITests.swift */, + 18962F092714189900C92A7A /* TasbihCounter2UITestsLaunchTests.swift */, + ); + path = TasbihCounter2UITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 18962EE22714189800C92A7A /* TasbihCounter2 */ = { + isa = PBXNativeTarget; + buildConfigurationList = 18962F0D2714189900C92A7A /* Build configuration list for PBXNativeTarget "TasbihCounter2" */; + buildPhases = ( + 18962EDF2714189800C92A7A /* Sources */, + 18962EE02714189800C92A7A /* Frameworks */, + 18962EE12714189800C92A7A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = TasbihCounter2; + productName = TasbihCounter2; + productReference = 18962EE32714189800C92A7A /* TasbihCounter2.app */; + productType = "com.apple.product-type.application"; + }; + 18962EF82714189900C92A7A /* TasbihCounter2Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 18962F102714189900C92A7A /* Build configuration list for PBXNativeTarget "TasbihCounter2Tests" */; + buildPhases = ( + 18962EF52714189900C92A7A /* Sources */, + 18962EF62714189900C92A7A /* Frameworks */, + 18962EF72714189900C92A7A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 18962EFB2714189900C92A7A /* PBXTargetDependency */, + ); + name = TasbihCounter2Tests; + productName = TasbihCounter2Tests; + productReference = 18962EF92714189900C92A7A /* TasbihCounter2Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 18962F022714189900C92A7A /* TasbihCounter2UITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 18962F132714189900C92A7A /* Build configuration list for PBXNativeTarget "TasbihCounter2UITests" */; + buildPhases = ( + 18962EFF2714189900C92A7A /* Sources */, + 18962F002714189900C92A7A /* Frameworks */, + 18962F012714189900C92A7A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 18962F052714189900C92A7A /* PBXTargetDependency */, + ); + name = TasbihCounter2UITests; + productName = TasbihCounter2UITests; + productReference = 18962F032714189900C92A7A /* TasbihCounter2UITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 18962EDB2714189800C92A7A /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1300; + LastUpgradeCheck = 1300; + TargetAttributes = { + 18962EE22714189800C92A7A = { + CreatedOnToolsVersion = 13.0; + }; + 18962EF82714189900C92A7A = { + CreatedOnToolsVersion = 13.0; + TestTargetID = 18962EE22714189800C92A7A; + }; + 18962F022714189900C92A7A = { + CreatedOnToolsVersion = 13.0; + TestTargetID = 18962EE22714189800C92A7A; + }; + }; + }; + buildConfigurationList = 18962EDE2714189800C92A7A /* Build configuration list for PBXProject "TasbihCounter2" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 18962EDA2714189800C92A7A; + productRefGroup = 18962EE42714189800C92A7A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 18962EE22714189800C92A7A /* TasbihCounter2 */, + 18962EF82714189900C92A7A /* TasbihCounter2Tests */, + 18962F022714189900C92A7A /* TasbihCounter2UITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 18962EE12714189800C92A7A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 18962EF32714189900C92A7A /* LaunchScreen.storyboard in Resources */, + 18962EF02714189900C92A7A /* Assets.xcassets in Resources */, + 18962EEE2714189800C92A7A /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 18962EF72714189900C92A7A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 18962F012714189900C92A7A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 18962EDF2714189800C92A7A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 18962EEB2714189800C92A7A /* ViewController.swift in Sources */, + 18962EE72714189800C92A7A /* AppDelegate.swift in Sources */, + 18962EE92714189800C92A7A /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 18962EF52714189900C92A7A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 18962EFE2714189900C92A7A /* TasbihCounter2Tests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 18962EFF2714189900C92A7A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 18962F082714189900C92A7A /* TasbihCounter2UITests.swift in Sources */, + 18962F0A2714189900C92A7A /* TasbihCounter2UITestsLaunchTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 18962EFB2714189900C92A7A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 18962EE22714189800C92A7A /* TasbihCounter2 */; + targetProxy = 18962EFA2714189900C92A7A /* PBXContainerItemProxy */; + }; + 18962F052714189900C92A7A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 18962EE22714189800C92A7A /* TasbihCounter2 */; + targetProxy = 18962F042714189900C92A7A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 18962EEC2714189800C92A7A /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 18962EED2714189800C92A7A /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 18962EF12714189900C92A7A /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 18962EF22714189900C92A7A /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 18962F0B2714189900C92A7A /* 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++17"; + 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 = 15.0; + 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; + }; + 18962F0C2714189900C92A7A /* 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++17"; + 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 = 15.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 18962F0E2714189900C92A7A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = TasbihCounter2/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 = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.nadaalbalawi.TasbihCounter2; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 18962F0F2714189900C92A7A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = TasbihCounter2/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 = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.nadaalbalawi.TasbihCounter2; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 18962F112714189900C92A7A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.nadaalbalawi.TasbihCounter2Tests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TasbihCounter2.app/TasbihCounter2"; + }; + name = Debug; + }; + 18962F122714189900C92A7A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.nadaalbalawi.TasbihCounter2Tests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TasbihCounter2.app/TasbihCounter2"; + }; + name = Release; + }; + 18962F142714189900C92A7A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.nadaalbalawi.TasbihCounter2UITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = TasbihCounter2; + }; + name = Debug; + }; + 18962F152714189900C92A7A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.nadaalbalawi.TasbihCounter2UITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = TasbihCounter2; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 18962EDE2714189800C92A7A /* Build configuration list for PBXProject "TasbihCounter2" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 18962F0B2714189900C92A7A /* Debug */, + 18962F0C2714189900C92A7A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 18962F0D2714189900C92A7A /* Build configuration list for PBXNativeTarget "TasbihCounter2" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 18962F0E2714189900C92A7A /* Debug */, + 18962F0F2714189900C92A7A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 18962F102714189900C92A7A /* Build configuration list for PBXNativeTarget "TasbihCounter2Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 18962F112714189900C92A7A /* Debug */, + 18962F122714189900C92A7A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 18962F132714189900C92A7A /* Build configuration list for PBXNativeTarget "TasbihCounter2UITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 18962F142714189900C92A7A /* Debug */, + 18962F152714189900C92A7A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 18962EDB2714189800C92A7A /* Project object */; +} diff --git a/TasbihCounter2/TasbihCounter2.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/TasbihCounter2/TasbihCounter2.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/TasbihCounter2/TasbihCounter2.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/TasbihCounter2/TasbihCounter2.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/TasbihCounter2/TasbihCounter2.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/TasbihCounter2/TasbihCounter2/.DS_Store b/TasbihCounter2/TasbihCounter2/.DS_Store new file mode 100644 index 0000000..7bd6977 Binary files /dev/null and b/TasbihCounter2/TasbihCounter2/.DS_Store differ diff --git a/TasbihCounter2/TasbihCounter2/AppDelegate.swift b/TasbihCounter2/TasbihCounter2/AppDelegate.swift new file mode 100644 index 0000000..7d11e41 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// TasbihCounter2 +// +// Created by apple 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/TasbihCounter2/TasbihCounter2/Assets.xcassets/AccentColor.colorset/Contents.json b/TasbihCounter2/TasbihCounter2/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/TasbihCounter2/TasbihCounter2/Assets.xcassets/AppIcon.appiconset/Contents.json b/TasbihCounter2/TasbihCounter2/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/TasbihCounter2/TasbihCounter2/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/TasbihCounter2/TasbihCounter2/Assets.xcassets/Contents.json b/TasbihCounter2/TasbihCounter2/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/TasbihCounter2/TasbihCounter2/Base.lproj/LaunchScreen.storyboard b/TasbihCounter2/TasbihCounter2/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TasbihCounter2/TasbihCounter2/Base.lproj/Main.storyboard b/TasbihCounter2/TasbihCounter2/Base.lproj/Main.storyboard new file mode 100644 index 0000000..ee67735 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2/Base.lproj/Main.storyboard @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TasbihCounter2/TasbihCounter2/Info.plist b/TasbihCounter2/TasbihCounter2/Info.plist new file mode 100644 index 0000000..dd3c9af --- /dev/null +++ b/TasbihCounter2/TasbihCounter2/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/TasbihCounter2/TasbihCounter2/SceneDelegate.swift b/TasbihCounter2/TasbihCounter2/SceneDelegate.swift new file mode 100644 index 0000000..a7acdf6 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// TasbihCounter2 +// +// Created by apple 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/TasbihCounter2/TasbihCounter2/ViewController.swift b/TasbihCounter2/TasbihCounter2/ViewController.swift new file mode 100644 index 0000000..4388b64 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2/ViewController.swift @@ -0,0 +1,53 @@ +// +// ViewController.swift +// TasbihCounter2 +// +// Created by apple on 05/03/1443 AH. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the + } + + @IBOutlet weak var displayLabel: UILabel! + + var counter = 0 + + + @IBAction func discounterButton(_sender: Any) { + subtractOneFromCounter() + } + + @IBAction func Counterpressed(_sender: Any){ + addOneToCounter() + } + + + @IBAction func resltBottn(_ sender: Any) { + reslt() + } + + + func subtractOneFromCounter(){ + if counter >= (1){ + counter = counter - 1 + } + displayLabel.text = counter.description + } + + func reslt() { + counter = 0 + displayLabel.text = counter.description + displayLabel.text = "\(counter)" + } + func addOneToCounter(){ + counter = counter + 1 + displayLabel.text = counter.description + displayLabel.text = "\(counter)" + } +} diff --git a/TasbihCounter2/TasbihCounter2Tests/TasbihCounter2Tests.swift b/TasbihCounter2/TasbihCounter2Tests/TasbihCounter2Tests.swift new file mode 100644 index 0000000..9a7cd10 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2Tests/TasbihCounter2Tests.swift @@ -0,0 +1,33 @@ +// +// TasbihCounter2Tests.swift +// TasbihCounter2Tests +// +// Created by apple on 05/03/1443 AH. +// + +import XCTest +@testable import TasbihCounter2 + +class TasbihCounter2Tests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/TasbihCounter2/TasbihCounter2UITests/TasbihCounter2UITests.swift b/TasbihCounter2/TasbihCounter2UITests/TasbihCounter2UITests.swift new file mode 100644 index 0000000..d4175d6 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2UITests/TasbihCounter2UITests.swift @@ -0,0 +1,42 @@ +// +// TasbihCounter2UITests.swift +// TasbihCounter2UITests +// +// Created by apple on 05/03/1443 AH. +// + +import XCTest + +class TasbihCounter2UITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/TasbihCounter2/TasbihCounter2UITests/TasbihCounter2UITestsLaunchTests.swift b/TasbihCounter2/TasbihCounter2UITests/TasbihCounter2UITestsLaunchTests.swift new file mode 100644 index 0000000..ba7eb45 --- /dev/null +++ b/TasbihCounter2/TasbihCounter2UITests/TasbihCounter2UITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// TasbihCounter2UITestsLaunchTests.swift +// TasbihCounter2UITests +// +// Created by apple on 05/03/1443 AH. +// + +import XCTest + +class TasbihCounter2UITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + func testLaunch() throws { + let app = XCUIApplication() + app.launch() + + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +}