diff --git a/Example/media/fullActionSheet.gif b/Example/media/fullActionSheet.gif deleted file mode 100755 index c470828..0000000 Binary files a/Example/media/fullActionSheet.gif and /dev/null differ diff --git a/Example/xcode projects/MSActionSheet.xcodeproj/project.pbxproj b/Example/xcode projects/MSActionSheet.xcodeproj/project.pbxproj index bb2a929..4a153eb 100755 --- a/Example/xcode projects/MSActionSheet.xcodeproj/project.pbxproj +++ b/Example/xcode projects/MSActionSheet.xcodeproj/project.pbxproj @@ -10,7 +10,6 @@ E13C608E1E982AB600FE6DB9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E13C608D1E982AB600FE6DB9 /* AppDelegate.swift */; }; E13C60901E982AB600FE6DB9 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E13C608F1E982AB600FE6DB9 /* ViewController.swift */; }; E13C60931E982AB600FE6DB9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E13C60911E982AB600FE6DB9 /* Main.storyboard */; }; - E13C60961E982AB600FE6DB9 /* MSActionSheet.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = E13C60941E982AB600FE6DB9 /* MSActionSheet.xcdatamodeld */; }; E13C609B1E982AB600FE6DB9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E13C60991E982AB600FE6DB9 /* LaunchScreen.storyboard */; }; E1CD4FFE1E98CDEA006FB0CE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E1CD4FFC1E98CDEA006FB0CE /* Assets.xcassets */; }; E1CD4FFF1E98CDEA006FB0CE /* MSActionSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1CD4FFD1E98CDEA006FB0CE /* MSActionSheet.swift */; }; @@ -21,7 +20,6 @@ E13C608D1E982AB600FE6DB9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; E13C608F1E982AB600FE6DB9 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; E13C60921E982AB600FE6DB9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - E13C60951E982AB600FE6DB9 /* MSActionSheet.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = MSActionSheet.xcdatamodel; sourceTree = ""; }; E13C609A1E982AB600FE6DB9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; E13C609C1E982AB600FE6DB9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; E1CD4FFC1E98CDEA006FB0CE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; @@ -65,7 +63,6 @@ E13C60911E982AB600FE6DB9 /* Main.storyboard */, E13C60991E982AB600FE6DB9 /* LaunchScreen.storyboard */, E13C609C1E982AB600FE6DB9 /* Info.plist */, - E13C60941E982AB600FE6DB9 /* MSActionSheet.xcdatamodeld */, ); path = MSActionSheet; sourceTree = ""; @@ -97,12 +94,13 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0830; - LastUpgradeCheck = 0830; + LastUpgradeCheck = 0900; ORGANIZATIONNAME = "Maor Shams"; TargetAttributes = { E13C60891E982AB600FE6DB9 = { CreatedOnToolsVersion = 8.3; - DevelopmentTeam = LE75NS246X; + DevelopmentTeam = FPKJ9P7BGC; + LastSwiftMigration = 0900; ProvisioningStyle = Automatic; }; }; @@ -146,7 +144,6 @@ E13C60901E982AB600FE6DB9 /* ViewController.swift in Sources */, E1CD4FFF1E98CDEA006FB0CE /* MSActionSheet.swift in Sources */, E13C608E1E982AB600FE6DB9 /* AppDelegate.swift in Sources */, - E13C60961E982AB600FE6DB9 /* MSActionSheet.xcdatamodeld in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -182,7 +179,9 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; @@ -190,7 +189,11 @@ 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_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -233,7 +236,9 @@ CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; @@ -241,7 +246,11 @@ 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_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -271,12 +280,14 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = LE75NS246X; + DEVELOPMENT_TEAM = FPKJ9P7BGC; INFOPLIST_FILE = MSActionSheet/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = maor.MSActionSheet; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.0; }; name = Debug; }; @@ -284,12 +295,14 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = LE75NS246X; + DEVELOPMENT_TEAM = FPKJ9P7BGC; INFOPLIST_FILE = MSActionSheet/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = maor.MSActionSheet; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 3.0; + SWIFT_SWIFT3_OBJC_INFERENCE = On; + SWIFT_VERSION = 4.0; }; name = Release; }; @@ -315,19 +328,6 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ - -/* Begin XCVersionGroup section */ - E13C60941E982AB600FE6DB9 /* MSActionSheet.xcdatamodeld */ = { - isa = XCVersionGroup; - children = ( - E13C60951E982AB600FE6DB9 /* MSActionSheet.xcdatamodel */, - ); - currentVersion = E13C60951E982AB600FE6DB9 /* MSActionSheet.xcdatamodel */; - path = MSActionSheet.xcdatamodeld; - sourceTree = ""; - versionGroupType = wrapper.xcdatamodel; - }; -/* End XCVersionGroup section */ }; rootObject = E13C60821E982AB600FE6DB9 /* Project object */; } diff --git a/Example/xcode projects/MSActionSheet.xcodeproj/project.xcworkspace/xcuserdata/maor_shamsian.xcuserdatad/UserInterfaceState.xcuserstate b/Example/xcode projects/MSActionSheet.xcodeproj/project.xcworkspace/xcuserdata/maor_shamsian.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..238d52b Binary files /dev/null and b/Example/xcode projects/MSActionSheet.xcodeproj/project.xcworkspace/xcuserdata/maor_shamsian.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Example/xcode projects/MSActionSheet.xcodeproj/xcuserdata/maor_shamsian.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Example/xcode projects/MSActionSheet.xcodeproj/xcuserdata/maor_shamsian.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..4175c70 --- /dev/null +++ b/Example/xcode projects/MSActionSheet.xcodeproj/xcuserdata/maor_shamsian.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,23 @@ + + + + + + + + + diff --git a/Example/xcode projects/MSActionSheet.xcodeproj/xcuserdata/maor_shamsian.xcuserdatad/xcschemes/xcschememanagement.plist b/Example/xcode projects/MSActionSheet.xcodeproj/xcuserdata/maor_shamsian.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..999fe58 --- /dev/null +++ b/Example/xcode projects/MSActionSheet.xcodeproj/xcuserdata/maor_shamsian.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + MSActionSheet.xcscheme + + orderHint + 0 + + + + diff --git a/Example/xcode projects/MSActionSheet/AppDelegate.swift b/Example/xcode projects/MSActionSheet/AppDelegate.swift index 55f4d90..1f29775 100755 --- a/Example/xcode projects/MSActionSheet/AppDelegate.swift +++ b/Example/xcode projects/MSActionSheet/AppDelegate.swift @@ -41,53 +41,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. // Saves changes in the application's managed object context before the application terminates. - self.saveContext() - } - - // MARK: - Core Data stack - - lazy var persistentContainer: NSPersistentContainer = { - /* - The persistent container for the application. This implementation - creates and returns a container, having loaded the store for the - application to it. This property is optional since there are legitimate - error conditions that could cause the creation of the store to fail. - */ - let container = NSPersistentContainer(name: "MSActionSheet") - container.loadPersistentStores(completionHandler: { (storeDescription, error) in - if let error = error as NSError? { - // Replace this implementation with code to handle the error appropriately. - // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. - - /* - Typical reasons for an error here include: - * The parent directory does not exist, cannot be created, or disallows writing. - * The persistent store is not accessible, due to permissions or data protection when the device is locked. - * The device is out of space. - * The store could not be migrated to the current model version. - Check the error message to determine what the actual problem was. - */ - fatalError("Unresolved error \(error), \(error.userInfo)") - } - }) - return container - }() - - // MARK: - Core Data Saving support - - func saveContext () { - let context = persistentContainer.viewContext - if context.hasChanges { - do { - try context.save() - } catch { - // Replace this implementation with code to handle the error appropriately. - // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. - let nserror = error as NSError - fatalError("Unresolved error \(nserror), \(nserror.userInfo)") - } - } } + } diff --git a/Example/xcode projects/MSActionSheet/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example/xcode projects/MSActionSheet/Assets.xcassets/AppIcon.appiconset/Contents.json index b8236c6..19882d5 100755 --- a/Example/xcode projects/MSActionSheet/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/Example/xcode projects/MSActionSheet/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -39,6 +39,11 @@ "idiom" : "iphone", "size" : "60x60", "scale" : "3x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" } ], "info" : { diff --git a/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_camera.imageset/Compact Camera_000000_32.png b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_camera.imageset/Compact Camera_000000_32.png new file mode 100644 index 0000000..6cedcc5 Binary files /dev/null and b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_camera.imageset/Compact Camera_000000_32.png differ diff --git a/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_camera.imageset/Compact Camera_000000_50.png b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_camera.imageset/Compact Camera_000000_50.png new file mode 100644 index 0000000..57748ed Binary files /dev/null and b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_camera.imageset/Compact Camera_000000_50.png differ diff --git a/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_camera.imageset/Contents.json b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_camera.imageset/Contents.json new file mode 100644 index 0000000..cc8ddb2 --- /dev/null +++ b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_camera.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Compact Camera_000000_32.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "Compact Camera_000000_50.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_gallery.imageset/Contents.json b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_gallery.imageset/Contents.json new file mode 100644 index 0000000..e2f8b98 --- /dev/null +++ b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_gallery.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Xlarge Icons_000000_32.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "Xlarge Icons_000000_50.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_gallery.imageset/Xlarge Icons_000000_32.png b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_gallery.imageset/Xlarge Icons_000000_32.png new file mode 100644 index 0000000..3cf0e26 Binary files /dev/null and b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_gallery.imageset/Xlarge Icons_000000_32.png differ diff --git a/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_gallery.imageset/Xlarge Icons_000000_50.png b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_gallery.imageset/Xlarge Icons_000000_50.png new file mode 100644 index 0000000..e6e7659 Binary files /dev/null and b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_gallery.imageset/Xlarge Icons_000000_50.png differ diff --git a/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_selfie.imageset/Contents.json b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_selfie.imageset/Contents.json new file mode 100644 index 0000000..f18eb25 --- /dev/null +++ b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_selfie.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "Selfie_000000_32.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "Selfie_000000_50.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_selfie.imageset/Selfie_000000_32.png b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_selfie.imageset/Selfie_000000_32.png new file mode 100644 index 0000000..ebe341f Binary files /dev/null and b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_selfie.imageset/Selfie_000000_32.png differ diff --git a/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_selfie.imageset/Selfie_000000_50.png b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_selfie.imageset/Selfie_000000_50.png new file mode 100644 index 0000000..bce93ec Binary files /dev/null and b/Example/xcode projects/MSActionSheet/Assets.xcassets/msactionsheet_selfie.imageset/Selfie_000000_50.png differ diff --git a/Example/xcode projects/MSActionSheet/Base.lproj/Main.storyboard b/Example/xcode projects/MSActionSheet/Base.lproj/Main.storyboard index b69164a..0677fc2 100755 --- a/Example/xcode projects/MSActionSheet/Base.lproj/Main.storyboard +++ b/Example/xcode projects/MSActionSheet/Base.lproj/Main.storyboard @@ -1,11 +1,13 @@ - + - + + + @@ -22,13 +24,13 @@