diff --git a/day16/.DS_Store b/day16/.DS_Store new file mode 100644 index 0000000..71b24fc Binary files /dev/null and b/day16/.DS_Store differ diff --git a/day16/day 16/day 16.xcodeproj/project.pbxproj b/day16/day 16/day 16.xcodeproj/project.pbxproj new file mode 100644 index 0000000..8596ba0 --- /dev/null +++ b/day16/day 16/day 16.xcodeproj/project.pbxproj @@ -0,0 +1,407 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + EE01D7DB271C0AFA00AC64AE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE01D7DA271C0AFA00AC64AE /* AppDelegate.swift */; }; + EE01D7DD271C0AFA00AC64AE /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE01D7DC271C0AFA00AC64AE /* SceneDelegate.swift */; }; + EE01D7DF271C0AFA00AC64AE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE01D7DE271C0AFA00AC64AE /* ViewController.swift */; }; + EE01D7E2271C0AFA00AC64AE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EE01D7E0271C0AFA00AC64AE /* Main.storyboard */; }; + EE01D7E4271C0AFB00AC64AE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EE01D7E3271C0AFB00AC64AE /* Assets.xcassets */; }; + EE01D7E7271C0AFB00AC64AE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EE01D7E5271C0AFB00AC64AE /* LaunchScreen.storyboard */; }; + EE01D7F6271C129400AC64AE /* VC1.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE01D7F5271C129400AC64AE /* VC1.swift */; }; + EE01D7F8271C130000AC64AE /* Cell1.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE01D7F7271C130000AC64AE /* Cell1.swift */; }; + EE01D7FA271C133F00AC64AE /* VC2.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE01D7F9271C133F00AC64AE /* VC2.swift */; }; + EE01D7FC271C137B00AC64AE /* Cell2.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE01D7FB271C137B00AC64AE /* Cell2.swift */; }; + EE01D7FE271C13BD00AC64AE /* Data.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE01D7FD271C13BD00AC64AE /* Data.swift */; }; + EE01D801271C15DA00AC64AE /* project3.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE01D800271C15DA00AC64AE /* project3.swift */; }; + EE01D803271C163700AC64AE /* taskTabelViewcell.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE01D802271C163700AC64AE /* taskTabelViewcell.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + EE01D7D7271C0AFA00AC64AE /* day 16.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "day 16.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + EE01D7DA271C0AFA00AC64AE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + EE01D7DC271C0AFA00AC64AE /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + EE01D7DE271C0AFA00AC64AE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + EE01D7E1271C0AFA00AC64AE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + EE01D7E3271C0AFB00AC64AE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + EE01D7E6271C0AFB00AC64AE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + EE01D7E8271C0AFB00AC64AE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + EE01D7F5271C129400AC64AE /* VC1.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VC1.swift; sourceTree = ""; }; + EE01D7F7271C130000AC64AE /* Cell1.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Cell1.swift; sourceTree = ""; }; + EE01D7F9271C133F00AC64AE /* VC2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VC2.swift; sourceTree = ""; }; + EE01D7FB271C137B00AC64AE /* Cell2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Cell2.swift; sourceTree = ""; }; + EE01D7FD271C13BD00AC64AE /* Data.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Data.swift; sourceTree = ""; }; + EE01D800271C15DA00AC64AE /* project3.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = project3.swift; sourceTree = ""; }; + EE01D802271C163700AC64AE /* taskTabelViewcell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = taskTabelViewcell.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + EE01D7D4271C0AFA00AC64AE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + EE01D7CE271C0AFA00AC64AE = { + isa = PBXGroup; + children = ( + EE01D7D9271C0AFA00AC64AE /* day 16 */, + EE01D7D8271C0AFA00AC64AE /* Products */, + ); + sourceTree = ""; + }; + EE01D7D8271C0AFA00AC64AE /* Products */ = { + isa = PBXGroup; + children = ( + EE01D7D7271C0AFA00AC64AE /* day 16.app */, + ); + name = Products; + sourceTree = ""; + }; + EE01D7D9271C0AFA00AC64AE /* day 16 */ = { + isa = PBXGroup; + children = ( + EE01D7DA271C0AFA00AC64AE /* AppDelegate.swift */, + EE01D7DC271C0AFA00AC64AE /* SceneDelegate.swift */, + EE01D7DE271C0AFA00AC64AE /* ViewController.swift */, + EE01D7E0271C0AFA00AC64AE /* Main.storyboard */, + EE01D7F4271C125600AC64AE /* Jahez */, + EE01D7E3271C0AFB00AC64AE /* Assets.xcassets */, + EE01D7E5271C0AFB00AC64AE /* LaunchScreen.storyboard */, + EE01D7E8271C0AFB00AC64AE /* Info.plist */, + ); + path = "day 16"; + sourceTree = ""; + }; + EE01D7F4271C125600AC64AE /* Jahez */ = { + isa = PBXGroup; + children = ( + EE01D7F5271C129400AC64AE /* VC1.swift */, + EE01D7F7271C130000AC64AE /* Cell1.swift */, + EE01D7F9271C133F00AC64AE /* VC2.swift */, + EE01D7FB271C137B00AC64AE /* Cell2.swift */, + EE01D7FD271C13BD00AC64AE /* Data.swift */, + EE01D7FF271C14E400AC64AE /* To do */, + ); + path = Jahez; + sourceTree = ""; + }; + EE01D7FF271C14E400AC64AE /* To do */ = { + isa = PBXGroup; + children = ( + EE01D800271C15DA00AC64AE /* project3.swift */, + EE01D802271C163700AC64AE /* taskTabelViewcell.swift */, + ); + path = "To do"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + EE01D7D6271C0AFA00AC64AE /* day 16 */ = { + isa = PBXNativeTarget; + buildConfigurationList = EE01D7EB271C0AFB00AC64AE /* Build configuration list for PBXNativeTarget "day 16" */; + buildPhases = ( + EE01D7D3271C0AFA00AC64AE /* Sources */, + EE01D7D4271C0AFA00AC64AE /* Frameworks */, + EE01D7D5271C0AFA00AC64AE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "day 16"; + productName = "day 16"; + productReference = EE01D7D7271C0AFA00AC64AE /* day 16.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + EE01D7CF271C0AFA00AC64AE /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1300; + LastUpgradeCheck = 1300; + TargetAttributes = { + EE01D7D6271C0AFA00AC64AE = { + CreatedOnToolsVersion = 13.0; + }; + }; + }; + buildConfigurationList = EE01D7D2271C0AFA00AC64AE /* Build configuration list for PBXProject "day 16" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = EE01D7CE271C0AFA00AC64AE; + productRefGroup = EE01D7D8271C0AFA00AC64AE /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + EE01D7D6271C0AFA00AC64AE /* day 16 */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + EE01D7D5271C0AFA00AC64AE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EE01D7E7271C0AFB00AC64AE /* LaunchScreen.storyboard in Resources */, + EE01D7E4271C0AFB00AC64AE /* Assets.xcassets in Resources */, + EE01D7E2271C0AFA00AC64AE /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + EE01D7D3271C0AFA00AC64AE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EE01D7FA271C133F00AC64AE /* VC2.swift in Sources */, + EE01D7DF271C0AFA00AC64AE /* ViewController.swift in Sources */, + EE01D7F6271C129400AC64AE /* VC1.swift in Sources */, + EE01D7FE271C13BD00AC64AE /* Data.swift in Sources */, + EE01D7DB271C0AFA00AC64AE /* AppDelegate.swift in Sources */, + EE01D801271C15DA00AC64AE /* project3.swift in Sources */, + EE01D803271C163700AC64AE /* taskTabelViewcell.swift in Sources */, + EE01D7FC271C137B00AC64AE /* Cell2.swift in Sources */, + EE01D7DD271C0AFA00AC64AE /* SceneDelegate.swift in Sources */, + EE01D7F8271C130000AC64AE /* Cell1.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + EE01D7E0271C0AFA00AC64AE /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + EE01D7E1271C0AFA00AC64AE /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + EE01D7E5271C0AFB00AC64AE /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + EE01D7E6271C0AFB00AC64AE /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + EE01D7E9271C0AFB00AC64AE /* 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; + }; + EE01D7EA271C0AFB00AC64AE /* 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; + }; + EE01D7EC271C0AFB00AC64AE /* 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 = "day 16/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 = "sally.com.day-16"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + EE01D7ED271C0AFB00AC64AE /* 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 = "day 16/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 = "sally.com.day-16"; + 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 */ + EE01D7D2271C0AFA00AC64AE /* Build configuration list for PBXProject "day 16" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EE01D7E9271C0AFB00AC64AE /* Debug */, + EE01D7EA271C0AFB00AC64AE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EE01D7EB271C0AFB00AC64AE /* Build configuration list for PBXNativeTarget "day 16" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EE01D7EC271C0AFB00AC64AE /* Debug */, + EE01D7ED271C0AFB00AC64AE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = EE01D7CF271C0AFA00AC64AE /* Project object */; +} diff --git a/day16/day 16/day 16.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/day16/day 16/day 16.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/day16/day 16/day 16.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/day16/day 16/day 16.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/day16/day 16/day 16.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/day16/day 16/day 16.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/day16/day 16/day 16.xcodeproj/project.xcworkspace/xcuserdata/sallyasiri.xcuserdatad/UserInterfaceState.xcuserstate b/day16/day 16/day 16.xcodeproj/project.xcworkspace/xcuserdata/sallyasiri.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..686dc46 Binary files /dev/null and b/day16/day 16/day 16.xcodeproj/project.xcworkspace/xcuserdata/sallyasiri.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/day16/day 16/day 16.xcodeproj/xcuserdata/sallyasiri.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/day16/day 16/day 16.xcodeproj/xcuserdata/sallyasiri.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..bfb7790 --- /dev/null +++ b/day16/day 16/day 16.xcodeproj/xcuserdata/sallyasiri.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,6 @@ + + + diff --git a/day16/day 16/day 16.xcodeproj/xcuserdata/sallyasiri.xcuserdatad/xcschemes/xcschememanagement.plist b/day16/day 16/day 16.xcodeproj/xcuserdata/sallyasiri.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..92b8166 --- /dev/null +++ b/day16/day 16/day 16.xcodeproj/xcuserdata/sallyasiri.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + day 16.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/day16/day 16/day 16/AppDelegate.swift b/day16/day 16/day 16/AppDelegate.swift new file mode 100644 index 0000000..14b0e5e --- /dev/null +++ b/day16/day 16/day 16/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// day 16 +// +// Created by sally asiri on 11/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/day16/day 16/day 16/Assets.xcassets/AccentColor.colorset/Contents.json b/day16/day 16/day 16/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/day16/day 16/day 16/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/day16/day 16/day 16/Assets.xcassets/AppIcon.appiconset/Contents.json b/day16/day 16/day 16/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/day16/day 16/day 16/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/day16/day 16/day 16/Assets.xcassets/Contents.json b/day16/day 16/day 16/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/day16/day 16/day 16/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\247\331\212\330\263 \330\247\331\205\330\261\331\212\331\203\330\247\331\206\331\210.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\247\331\212\330\263 \330\247\331\205\330\261\331\212\331\203\330\247\331\206\331\210.imageset/Contents.json" new file mode 100644 index 0000000..100554d --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\247\331\212\330\263 \330\247\331\205\330\261\331\212\331\203\330\247\331\206\331\210.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "EAGZBbaXkAAfKCA.jpg-large.jpeg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\247\331\212\330\263 \330\247\331\205\330\261\331\212\331\203\330\247\331\206\331\210.imageset/EAGZBbaXkAAfKCA.jpg-large.jpeg" "b/day16/day 16/day 16/Assets.xcassets/\330\247\331\212\330\263 \330\247\331\205\330\261\331\212\331\203\330\247\331\206\331\210.imageset/EAGZBbaXkAAfKCA.jpg-large.jpeg" new file mode 100644 index 0000000..3d55e9a Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\247\331\212\330\263 \330\247\331\205\330\261\331\212\331\203\330\247\331\206\331\210.imageset/EAGZBbaXkAAfKCA.jpg-large.jpeg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\250\330\247\330\261\330\250\331\212\331\203\331\210.imageset/C07oWzRW8AEfHn6.jpg" "b/day16/day 16/day 16/Assets.xcassets/\330\250\330\247\330\261\330\250\331\212\331\203\331\210.imageset/C07oWzRW8AEfHn6.jpg" new file mode 100644 index 0000000..a58e983 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\250\330\247\330\261\330\250\331\212\331\203\331\210.imageset/C07oWzRW8AEfHn6.jpg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\250\330\247\330\261\330\250\331\212\331\203\331\210.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\250\330\247\330\261\330\250\331\212\331\203\331\210.imageset/Contents.json" new file mode 100644 index 0000000..96cf7db --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\250\330\247\330\261\330\250\331\212\331\203\331\210.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "C07oWzRW8AEfHn6.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\252\330\263\330\250\331\212\330\255.imageset/9a378ad80235e00b9257847c761d2fdc.jpg" "b/day16/day 16/day 16/Assets.xcassets/\330\252\330\263\330\250\331\212\330\255.imageset/9a378ad80235e00b9257847c761d2fdc.jpg" new file mode 100644 index 0000000..03ce327 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\252\330\263\330\250\331\212\330\255.imageset/9a378ad80235e00b9257847c761d2fdc.jpg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\252\330\263\330\250\331\212\330\255.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\252\330\263\330\250\331\212\330\255.imageset/Contents.json" new file mode 100644 index 0000000..942e2af --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\252\330\263\330\250\331\212\330\255.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "9a378ad80235e00b9257847c761d2fdc.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\252\331\210\330\261\330\252\331\204\330\247 \330\257\330\254\330\247\330\254.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\252\331\210\330\261\330\252\331\204\330\247 \330\257\330\254\330\247\330\254.imageset/Contents.json" new file mode 100644 index 0000000..8b75287 --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\252\331\210\330\261\330\252\331\204\330\247 \330\257\330\254\330\247\330\254.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "D--HdrXXsAI4l_Q.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\252\331\210\330\261\330\252\331\204\330\247 \330\257\330\254\330\247\330\254.imageset/D--HdrXXsAI4l_Q.jpg" "b/day16/day 16/day 16/Assets.xcassets/\330\252\331\210\330\261\330\252\331\204\330\247 \330\257\330\254\330\247\330\254.imageset/D--HdrXXsAI4l_Q.jpg" new file mode 100644 index 0000000..ac329be Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\252\331\210\330\261\330\252\331\204\330\247 \330\257\330\254\330\247\330\254.imageset/D--HdrXXsAI4l_Q.jpg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\257\330\247\330\250\331\204 \330\247\330\250.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\257\330\247\330\250\331\204 \330\247\330\250.imageset/Contents.json" new file mode 100644 index 0000000..57ffd9f --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\257\330\247\330\250\331\204 \330\247\330\250.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "أحد-مشروبات-بارن-كافيه-scaled.jpeg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\257\330\247\330\250\331\204 \330\247\330\250.imageset/\330\243\330\255\330\257-\331\205\330\264\330\261\331\210\330\250\330\247\330\252-\330\250\330\247\330\261\331\206-\331\203\330\247\331\201\331\212\331\207-scaled.jpeg" "b/day16/day 16/day 16/Assets.xcassets/\330\257\330\247\330\250\331\204 \330\247\330\250.imageset/\330\243\330\255\330\257-\331\205\330\264\330\261\331\210\330\250\330\247\330\252-\330\250\330\247\330\261\331\206-\331\203\330\247\331\201\331\212\331\207-scaled.jpeg" new file mode 100644 index 0000000..e20070d Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\257\330\247\330\250\331\204 \330\247\330\250.imageset/\330\243\330\255\330\257-\331\205\330\264\330\261\331\210\330\250\330\247\330\252-\330\250\330\247\330\261\331\206-\331\203\330\247\331\201\331\212\331\207-scaled.jpeg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\257\330\250\331\204 \331\207\330\261\331\201\331\212 \331\204\330\255\331\205.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\257\330\250\331\204 \331\207\330\261\331\201\331\212 \331\204\330\255\331\205.imageset/Contents.json" new file mode 100644 index 0000000..5d5b2cf --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\257\330\250\331\204 \331\207\330\261\331\201\331\212 \331\204\330\255\331\205.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "DIvEeiAXgAAlGBR.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\257\330\250\331\204 \331\207\330\261\331\201\331\212 \331\204\330\255\331\205.imageset/DIvEeiAXgAAlGBR.jpg" "b/day16/day 16/day 16/Assets.xcassets/\330\257\330\250\331\204 \331\207\330\261\331\201\331\212 \331\204\330\255\331\205.imageset/DIvEeiAXgAAlGBR.jpg" new file mode 100644 index 0000000..9eeed46 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\257\330\250\331\204 \331\207\330\261\331\201\331\212 \331\204\330\255\331\205.imageset/DIvEeiAXgAAlGBR.jpg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\330\250 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/C853M9TWAAQWq8k.jpg" "b/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\330\250 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/C853M9TWAAQWq8k.jpg" new file mode 100644 index 0000000..dbbe373 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\330\250 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/C853M9TWAAQWq8k.jpg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\330\250 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\330\250 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/Contents.json" new file mode 100644 index 0000000..d39d61f --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\330\250 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "C853M9TWAAQWq8k.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\331\206\330\264 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/3150-2.jpg" "b/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\331\206\330\264 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/3150-2.jpg" new file mode 100644 index 0000000..4f3931e Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\331\206\330\264 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/3150-2.jpg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\331\206\330\264 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\331\206\330\264 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/Contents.json" new file mode 100644 index 0000000..3683b0c --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\261\330\247\331\206\330\264 \330\247\331\204\330\257\330\254\330\247\330\254.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "3150-2.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\261\331\210\330\262 \331\204\330\247\330\252\331\212\331\207.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\261\331\210\330\262 \331\204\330\247\330\252\331\212\331\207.imageset/Contents.json" new file mode 100644 index 0000000..4a465fc --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\261\331\210\330\262 \331\204\330\247\330\252\331\212\331\207.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "D8dq_rTWkAAik_K.jpg-large.jpeg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\261\331\210\330\262 \331\204\330\247\330\252\331\212\331\207.imageset/D8dq_rTWkAAik_K.jpg-large.jpeg" "b/day16/day 16/day 16/Assets.xcassets/\330\261\331\210\330\262 \331\204\330\247\330\252\331\212\331\207.imageset/D8dq_rTWkAAik_K.jpg-large.jpeg" new file mode 100644 index 0000000..56ab132 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\261\331\210\330\262 \331\204\330\247\330\252\331\212\331\207.imageset/D8dq_rTWkAAik_K.jpg-large.jpeg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207-1.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207-1.imageset/Contents.json" new file mode 100644 index 0000000..e56694c --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207-1.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "D8YkyfrXkAIJ7IH.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207-1.imageset/D8YkyfrXkAIJ7IH.jpg" "b/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207-1.imageset/D8YkyfrXkAIJ7IH.jpg" new file mode 100644 index 0000000..84edcd6 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207-1.imageset/D8YkyfrXkAIJ7IH.jpg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207.imageset/Contents.json" new file mode 100644 index 0000000..e56694c --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "D8YkyfrXkAIJ7IH.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207.imageset/D8YkyfrXkAIJ7IH.jpg" "b/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207.imageset/D8YkyfrXkAIJ7IH.jpg" new file mode 100644 index 0000000..84edcd6 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\263\330\250\330\247\331\206\331\212\330\264 \331\204\330\247\330\252\331\212\331\207.imageset/D8YkyfrXkAIJ7IH.jpg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\250\330\247\330\261\331\206\330\262.imageset/2b36b0d5c45d1.jpg" "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\250\330\247\330\261\331\206\330\262.imageset/2b36b0d5c45d1.jpg" new file mode 100644 index 0000000..bd05ef3 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\250\330\247\330\261\331\206\330\262.imageset/2b36b0d5c45d1.jpg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\250\330\247\330\261\331\206\330\262.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\250\330\247\330\261\331\206\330\262.imageset/Contents.json" new file mode 100644 index 0000000..2074f57 --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\250\330\247\330\261\331\206\330\262.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "2b36b0d5c45d1.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\263\330\252\330\247\330\261 \330\250\331\203\330\263.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\263\330\252\330\247\330\261 \330\250\331\203\330\263.imageset/Contents.json" new file mode 100644 index 0000000..3c4eda8 --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\263\330\252\330\247\330\261 \330\250\331\203\330\263.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "images.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\263\330\252\330\247\330\261 \330\250\331\203\330\263.imageset/images.png" "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\263\330\252\330\247\330\261 \330\250\331\203\330\263.imageset/images.png" new file mode 100644 index 0000000..4c9eda1 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \330\263\330\252\330\247\330\261 \330\250\331\203\330\263.imageset/images.png" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\205\330\247\331\212\330\263\330\252\330\261\331\210.imageset/152687541980140-1024x1024.png" "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\205\330\247\331\212\330\263\330\252\330\261\331\210.imageset/152687541980140-1024x1024.png" new file mode 100644 index 0000000..c56da58 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\205\330\247\331\212\330\263\330\252\330\261\331\210.imageset/152687541980140-1024x1024.png" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\205\330\247\331\212\330\263\330\252\330\261\331\210.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\205\330\247\331\212\330\263\330\252\330\261\331\210.imageset/Contents.json" new file mode 100644 index 0000000..fe8e3bd --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\205\330\247\331\212\330\263\330\252\330\261\331\210.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "152687541980140-1024x1024.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\207\330\261\331\201\331\212.imageset/1037px-\330\264\330\271\330\247\330\261_\330\264\330\261\331\203\330\251_\331\207\330\261\331\201\331\212.svg.png" "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\207\330\261\331\201\331\212.imageset/1037px-\330\264\330\271\330\247\330\261_\330\264\330\261\331\203\330\251_\331\207\330\261\331\201\331\212.svg.png" new file mode 100644 index 0000000..d30f58e Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\207\330\261\331\201\331\212.imageset/1037px-\330\264\330\271\330\247\330\261_\330\264\330\261\331\203\330\251_\331\207\330\261\331\201\331\212.svg.png" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\207\330\261\331\201\331\212.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\207\330\261\331\201\331\212.imageset/Contents.json" new file mode 100644 index 0000000..07cb881 --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\330\264\330\271\330\247\330\261 \331\207\330\261\331\201\331\212.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "1037px-شعار_شركة_هرفي.svg.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\331\201\330\261\330\247\330\250\330\252\330\264\331\212\331\206\331\210 \331\203\330\261\330\247\331\205\331\212\331\204.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\331\201\330\261\330\247\330\250\330\252\330\264\331\212\331\206\331\210 \331\203\330\261\330\247\331\205\331\212\331\204.imageset/Contents.json" new file mode 100644 index 0000000..2eb8483 --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\331\201\330\261\330\247\330\250\330\252\330\264\331\212\331\206\331\210 \331\203\330\261\330\247\331\205\331\212\331\204.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "images-3.jpeg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\331\201\330\261\330\247\330\250\330\252\330\264\331\212\331\206\331\210 \331\203\330\261\330\247\331\205\331\212\331\204.imageset/images-3.jpeg" "b/day16/day 16/day 16/Assets.xcassets/\331\201\330\261\330\247\330\250\330\252\330\264\331\212\331\206\331\210 \331\203\330\261\330\247\331\205\331\212\331\204.imageset/images-3.jpeg" new file mode 100644 index 0000000..97f44b5 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\331\201\330\261\330\247\330\250\330\252\330\264\331\212\331\206\331\210 \331\203\330\261\330\247\331\205\331\212\331\204.imageset/images-3.jpeg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\331\203\330\247\330\263\330\247\330\257\331\212\330\247.imageset/1487795242-x2.jpg" "b/day16/day 16/day 16/Assets.xcassets/\331\203\330\247\330\263\330\247\330\257\331\212\330\247.imageset/1487795242-x2.jpg" new file mode 100644 index 0000000..e48e4d4 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\331\203\330\247\330\263\330\247\330\257\331\212\330\247.imageset/1487795242-x2.jpg" differ diff --git "a/day16/day 16/day 16/Assets.xcassets/\331\203\330\247\330\263\330\247\330\257\331\212\330\247.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\331\203\330\247\330\263\330\247\330\257\331\212\330\247.imageset/Contents.json" new file mode 100644 index 0000000..f962393 --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\331\203\330\247\330\263\330\247\330\257\331\212\330\247.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "1487795242-x2.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\331\210\330\247\331\212\330\252 \331\205\331\210\331\203\330\247.imageset/Contents.json" "b/day16/day 16/day 16/Assets.xcassets/\331\210\330\247\331\212\330\252 \331\205\331\210\331\203\330\247.imageset/Contents.json" new file mode 100644 index 0000000..43977fc --- /dev/null +++ "b/day16/day 16/day 16/Assets.xcassets/\331\210\330\247\331\212\330\252 \331\205\331\210\331\203\330\247.imageset/Contents.json" @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "ستاربكس-المملكة.jpg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git "a/day16/day 16/day 16/Assets.xcassets/\331\210\330\247\331\212\330\252 \331\205\331\210\331\203\330\247.imageset/\330\263\330\252\330\247\330\261\330\250\331\203\330\263-\330\247\331\204\331\205\331\205\331\204\331\203\330\251.jpg" "b/day16/day 16/day 16/Assets.xcassets/\331\210\330\247\331\212\330\252 \331\205\331\210\331\203\330\247.imageset/\330\263\330\252\330\247\330\261\330\250\331\203\330\263-\330\247\331\204\331\205\331\205\331\204\331\203\330\251.jpg" new file mode 100644 index 0000000..1babe48 Binary files /dev/null and "b/day16/day 16/day 16/Assets.xcassets/\331\210\330\247\331\212\330\252 \331\205\331\210\331\203\330\247.imageset/\330\263\330\252\330\247\330\261\330\250\331\203\330\263-\330\247\331\204\331\205\331\205\331\204\331\203\330\251.jpg" differ diff --git a/day16/day 16/day 16/Base.lproj/LaunchScreen.storyboard b/day16/day 16/day 16/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/day16/day 16/day 16/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/day16/day 16/day 16/Base.lproj/Main.storyboard b/day16/day 16/day 16/Base.lproj/Main.storyboard new file mode 100644 index 0000000..8ede67b --- /dev/null +++ b/day16/day 16/day 16/Base.lproj/Main.storyboard @@ -0,0 +1,431 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/day16/day 16/day 16/Info.plist b/day16/day 16/day 16/Info.plist new file mode 100644 index 0000000..dd3c9af --- /dev/null +++ b/day16/day 16/day 16/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/day16/day 16/day 16/Jahez/Cell1.swift b/day16/day 16/day 16/Jahez/Cell1.swift new file mode 100644 index 0000000..1c07940 --- /dev/null +++ b/day16/day 16/day 16/Jahez/Cell1.swift @@ -0,0 +1,22 @@ +// +// Cell1.swift +// day 16 +// +// Created by sally asiri on 11/03/1443 AH. +// +import UIKit + +class Cell1 : UITableViewCell { + + @IBOutlet weak var restLogo: UIImageView! + + @IBOutlet weak var restName: UILabel! + + @IBOutlet weak var restType: UILabel! + + @IBOutlet weak var restState: UILabel! + + @IBOutlet weak var restRating: UILabel! + +} + diff --git a/day16/day 16/day 16/Jahez/Cell2.swift b/day16/day 16/day 16/Jahez/Cell2.swift new file mode 100644 index 0000000..375c931 --- /dev/null +++ b/day16/day 16/day 16/Jahez/Cell2.swift @@ -0,0 +1,18 @@ +// +// Cell2.swift +// day 16 +// +// Created by sally asiri on 11/03/1443 AH. +// + + +import UIKit +class Cell2 : UITableViewCell { + + @IBOutlet weak var foodImage: UIImageView! + + @IBOutlet weak var foodName: UILabel! + + @IBOutlet weak var foodPrice: UILabel! +} + diff --git a/day16/day 16/day 16/Jahez/Data.swift b/day16/day 16/day 16/Jahez/Data.swift new file mode 100644 index 0000000..b54749b --- /dev/null +++ b/day16/day 16/day 16/Jahez/Data.swift @@ -0,0 +1,89 @@ +// +// Data.swift +// day 16 +// +// Created by sally asiri on 11/03/1443 AH. +// + + +import UIKit + +struct Rest { + let name: String + let type: String + let state: String + let rating: Int + let logo: String + let foods: Array +} + +struct Food { + let name: String + let image: String + let price: Double + +} + + + +let restList = [ Rest (name: "مايسترو بيتزا", + type: "بيتزا", + state: "مفتوح", + rating: 3, + logo: "شعار مايسترو", + + foods: [ + Food (name: "رانش الدجاج", image: "رانش الدجاج", price: 4.0), + Food (name: "كاساديا", image: "كاساديا", price: 3.0), + Food(name: "باربيكو", image: "باربيكو", price: 3.0) + ] + + ), + Rest (name: "هرفي", + type: "برجر", + state: "مغلق", + rating: 3, + logo: "شعار هرفي", + + foods: [ + Food (name: "راب الدجاج", image: "راب الدجاج", price: 4.0), + Food (name: "دبل هرفي لحم", image: "دبل هرفي لحم", price: 3.0), + Food(name: "تورتلا دجاج", image: "تورتلا دجاج", price: 3.0) + ] + + ), + Rest (name: "ستار بكس", + type: "مشروبات", + state: "مفتوح", + rating: 4, + logo: "شعار ستار بكس", + + foods: [ + Food (name: "ايس امريكانو", image: "ايس امريكانو", price: 4.0), + Food (name: "فرابتشينو كراميل", image: "فرابتشينو كراميل", price: 3.0), + Food(name: "وايت موكا", image: "وايت موكا", price: 3.0) + ] + + ), + + Rest (name: "بارنز", + type: "مشروبات", + state: "مغلق", + rating: 3, + logo: "شعار بارنز", + + foods: [ + Food (name: "دابل اب", image: "دابل اب", price: 4.0), + Food (name: "سبانيش لاتيه", image: "سبانيش لاتيه", price: 3.0), + Food(name: "روز لاتيه", image: "روز لاتيه", price: 3.0) + ] + + ) + + + +] + +var counter:[String:Int] = [:] + + diff --git a/day16/day 16/day 16/Jahez/To do/project3.swift b/day16/day 16/day 16/Jahez/To do/project3.swift new file mode 100644 index 0000000..ec2cf1d --- /dev/null +++ b/day16/day 16/day 16/Jahez/To do/project3.swift @@ -0,0 +1,68 @@ +// +// ViewController.swift +// day 16 +// +// Created by sally asiri on 11/03/1443 AH. +// + +import UIKit +struct Task { + var taskTitle:String? + var isCompleted = false +} +var taskArray = [Task] () +class project3: UIViewController,UITableViewDataSource,UITableViewDelegate, checkButtondelegate { + @IBOutlet weak var taskTitle: UITextField! + @IBOutlet weak var tabelView: UITableView! + @IBOutlet weak var buttenPress: UIButton! + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + if taskArray.count > 0{ + return taskArray.count + }else { + return 0 + } + } + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "taskCell", for: indexPath) as! taskTabelViewcell + cell.delegate = self + cell.indexpath = indexPath + cell.cellfield.text = taskArray[indexPath.row].taskTitle + cell.setup() + if taskArray[indexPath.row].isCompleted{ + cell.checkButton.setImage(UIImage(systemName: "checkmark.circle.fill"), for: .normal) + } else { + + cell.checkButton.setImage(UIImage(systemName: "plus.circle.fill"), for: .normal) + } + return cell + } + func checkTaskTapped(at index: IndexPath) { + if taskArray[index.row].isCompleted{ + taskArray[index.row].isCompleted = false + }else{ + taskArray[index.row].isCompleted = true + } + tabelView.reloadData() + } + func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) { + if editingStyle == .delete { + taskArray.remove(at: indexPath.row) + tableView.deleteRows(at: [indexPath], with: .fade) + } + tableView.reloadData() + } + @IBAction func action(_ sender: Any) { + if taskTitle.hasText{ + let newTask = Task(taskTitle: taskTitle.text, isCompleted: false) + taskArray.insert(newTask, at: 0) + tabelView.reloadData() + taskTitle.text = "" + } + } + override func viewDidLoad() { + super.viewDidLoad() + tabelView.dataSource = self + tabelView.delegate = self + } +} + diff --git a/day16/day 16/day 16/Jahez/To do/taskTabelViewcell.swift b/day16/day 16/day 16/Jahez/To do/taskTabelViewcell.swift new file mode 100644 index 0000000..6ac5619 --- /dev/null +++ b/day16/day 16/day 16/Jahez/To do/taskTabelViewcell.swift @@ -0,0 +1,31 @@ +// +// taskTabelViewcell.swift +// day 16 +// +// Created by sally asiri on 11/03/1443 AH. +// + +import UIKit +protocol checkButtondelegate { + func checkTaskTapped(at index:IndexPath) +} +class taskTabelViewcell: UITableViewCell, UITextFieldDelegate { + var delegate:checkButtondelegate! + var indexpath: IndexPath! + func setup() { + self.cellfield.delegate = self + } + @IBOutlet weak var checkButton: UIButton! + @IBOutlet weak var cellfield: UITextField! + @IBAction func action(_ sender: Any) { + + delegate.checkTaskTapped(at: indexpath) + } + func textFieldShouldReturn(_ textField: UITextField) -> Bool { + let update = Task(taskTitle: cellfield.text, isCompleted: taskArray[indexpath.row].isCompleted) + taskArray[indexpath.row] = update + cellfield.resignFirstResponder() + return true + } +} + diff --git a/day16/day 16/day 16/Jahez/VC1.swift b/day16/day 16/day 16/Jahez/VC1.swift new file mode 100644 index 0000000..638aa01 --- /dev/null +++ b/day16/day 16/day 16/Jahez/VC1.swift @@ -0,0 +1,66 @@ +// +// VC1.swift +// day 16 +// +// Created by sally asiri on 11/03/1443 AH. +// + + +import UIKit +class VC1: UIViewController, UITableViewDelegate,UITableViewDataSource { + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return restList.count + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + + + + let rest = restList[indexPath.row] + let cell = tableView.dequeueReusableCell(withIdentifier: "RestCell", for: indexPath) as! Cell1 + + + cell.restName.text = rest.name + cell.restLogo.image = UIImage(named: rest.logo) + cell.restRating.text = "\(rest.rating)" + cell.restState.text = rest.state + cell.restType.text = rest.type + + + + return cell + } + + + @IBOutlet weak var restTV: UITableView! + + + + override func viewDidLoad() { + super.viewDidLoad() + + restTV.delegate = self + restTV.dataSource = self + } + + + func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { + let rest = restList[indexPath.row] + let oldValue = counter[rest.name] ?? 0 + counter[rest.name] = oldValue + 1 + + + performSegue(withIdentifier: "show_menu", sender: rest) + } + + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + super.prepare(for: segue, sender: sender) + + let vc2 = segue.destination as! VC2 + vc2.restFromVC1 = sender as? Rest + + } + +} + + diff --git a/day16/day 16/day 16/Jahez/VC2.swift b/day16/day 16/day 16/Jahez/VC2.swift new file mode 100644 index 0000000..c191024 --- /dev/null +++ b/day16/day 16/day 16/Jahez/VC2.swift @@ -0,0 +1,65 @@ +// +// VC2.swift +// day 16 +// +// Created by sally asiri on 11/03/1443 AH. +// + +import UIKit +class VC2 : UIViewController,UITableViewDelegate,UITableViewDataSource { + + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return restFromVC1?.foods.count ?? 0 + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + + + let cell = tableView.dequeueReusableCell(withIdentifier: "FoodCell", for: indexPath) as! Cell2 + let food = restFromVC1!.foods[indexPath.row] + + + cell.foodName.text = food.name + cell.foodPrice.text = "\(food.price)" + cell.foodImage.image = UIImage(named: food.image) + + return cell + } + + + var restFromVC1: Rest? + + @IBOutlet weak var menuTV: UITableView! + + @IBOutlet weak var restLogo: UIImageView! + + @IBOutlet weak var restName: UILabel! + @IBOutlet weak var restType: UILabel! + @IBOutlet weak var restState: UILabel! + @IBOutlet weak var restRating: UILabel! + + @IBOutlet weak var countlabel: UILabel! + + + //lable.text = "\oldValue)" + + + override func viewDidLoad() { + super.viewDidLoad() + restName.text = restFromVC1?.name + restType.text = restFromVC1?.type + restState.text = restFromVC1?.state + restLogo.image = UIImage(named: restFromVC1!.logo) + restRating.text = "\(restFromVC1!.rating)" + countlabel.text = "\(counter[restFromVC1!.name]!)" + + + menuTV.delegate = self + menuTV.dataSource = self + } + + + + +} diff --git a/day16/day 16/day 16/SceneDelegate.swift b/day16/day 16/day 16/SceneDelegate.swift new file mode 100644 index 0000000..084894b --- /dev/null +++ b/day16/day 16/day 16/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// day 16 +// +// Created by sally asiri on 11/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/day16/day 16/day 16/ViewController.swift b/day16/day 16/day 16/ViewController.swift new file mode 100644 index 0000000..b9620c0 --- /dev/null +++ b/day16/day 16/day 16/ViewController.swift @@ -0,0 +1,37 @@ +// +// ViewController.swift +// day 16 +// +// Created by sally asiri on 11/03/1443 AH. +// +import UIKit + +class ViewController : UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } +var currntcount = 0 + + @IBOutlet weak var label: UILabel! + func reset() { + currntcount = 0 + label.text = String(describing: currntcount) + } + + @IBAction func reseet(_ sender: Any) { + reset() + + } + func count (){ + currntcount += 1 + label.text = String(describing: currntcount) + + } + + @IBAction func countt(_ sender: Any) { + count() + } + +} diff --git a/day16/day 16/day 16/sallynewUITests.swift b/day16/day 16/day 16/sallynewUITests.swift new file mode 100644 index 0000000..17f7ade --- /dev/null +++ b/day16/day 16/day 16/sallynewUITests.swift @@ -0,0 +1,42 @@ +// +// tspehUITests.swift +// day 16 +// +// Created by sally asiri on 11/03/1443 AH. +// +import UIKit + +class sallynewUITests: UIViewController{ + + 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() + } + } + } +} +