diff --git a/ContextMenu.podspec b/ContextMenu.podspec index 7e86a0b..8bf97dd 100644 --- a/ContextMenu.podspec +++ b/ContextMenu.podspec @@ -7,4 +7,6 @@ Pod::Spec.new do |spec| spec.summary = 'Context menu inspired by Things 3.' spec.source = { :git => 'https://github.com/GitHawkApp/ContextMenu.git', :tag => '#{s.version}' } spec.source_files = 'ContextMenu/*.swift' + spec.platform = :ios, '10.0' + spec.swift_version = '4.0' end \ No newline at end of file diff --git a/ContextMenu/ClippedContainerViewController.swift b/ContextMenu/ClippedContainerViewController.swift index b7c2e2d..c584c2b 100644 --- a/ContextMenu/ClippedContainerViewController.swift +++ b/ContextMenu/ClippedContainerViewController.swift @@ -27,8 +27,23 @@ internal class ClippedContainerViewController: UIViewController { super.viewDidLoad() view.layer.cornerRadius = options.containerStyle.cornerRadius view.layer.shadowRadius = options.containerStyle.shadowRadius + view.layer.shadowOpacity = options.containerStyle.shadowOpacity view.layer.shadowColor = UIColor.black.cgColor - view.layer.shadowOpacity = 0.2 + + if options.containerStyle.motionEffect { + let amount = 12 + let tiltX = UIInterpolatingMotionEffect(keyPath: "center.x", type: .tiltAlongHorizontalAxis) + tiltX.minimumRelativeValue = -amount + tiltX.maximumRelativeValue = amount + + let tiltY = UIInterpolatingMotionEffect(keyPath: "center.y", type: .tiltAlongVerticalAxis) + tiltY.minimumRelativeValue = -amount + tiltY.maximumRelativeValue = amount + + let group = UIMotionEffectGroup() + group.motionEffects = [tiltX, tiltY] + view.addMotionEffect(group) + } containedViewController.view.layer.cornerRadius = view.layer.cornerRadius containedViewController.view.clipsToBounds = true diff --git a/ContextMenu/ContextMenu+ContainerStyle.swift b/ContextMenu/ContextMenu+ContainerStyle.swift index 27216f3..8fe0562 100644 --- a/ContextMenu/ContextMenu+ContainerStyle.swift +++ b/ContextMenu/ContextMenu+ContainerStyle.swift @@ -14,28 +14,34 @@ extension ContextMenu { public let cornerRadius: CGFloat public let shadowRadius: CGFloat + public let shadowOpacity: Float public let xPadding: CGFloat public let yPadding: CGFloat public let edgePadding: CGFloat public let backgroundColor: UIColor public let overlayColor: UIColor + public let motionEffect: Bool public init( cornerRadius: CGFloat = 8, shadowRadius: CGFloat = 15, + shadowOpacity: Float = 0.1, xPadding: CGFloat = 8, yPadding: CGFloat = 8, edgePadding: CGFloat = 15, backgroundColor: UIColor = .white, - overlayColor: UIColor = UIColor(white: 0, alpha: 0.3) + overlayColor: UIColor = UIColor(white: 0, alpha: 0.3), + motionEffect: Bool = true ) { self.cornerRadius = cornerRadius self.shadowRadius = shadowRadius + self.shadowOpacity = shadowOpacity self.xPadding = xPadding self.yPadding = yPadding self.edgePadding = edgePadding self.backgroundColor = backgroundColor self.overlayColor = overlayColor + self.motionEffect = motionEffect } } diff --git a/ContextMenu/ContextMenu+Options.swift b/ContextMenu/ContextMenu+Options.swift index e2c9658..f0e3ca1 100644 --- a/ContextMenu/ContextMenu+Options.swift +++ b/ContextMenu/ContextMenu+Options.swift @@ -15,15 +15,18 @@ extension ContextMenu { let durations: AnimationDurations let containerStyle: ContainerStyle let menuStyle: MenuStyle + let haptics: Bool public init( durations: AnimationDurations = AnimationDurations(), containerStyle: ContainerStyle = ContainerStyle(), - menuStyle: MenuStyle = .default + menuStyle: MenuStyle = .default, + haptics: Bool = true ) { self.durations = durations self.containerStyle = containerStyle self.menuStyle = menuStyle + self.haptics = haptics } } diff --git a/ContextMenu/ContextMenu.swift b/ContextMenu/ContextMenu.swift index 41bfedf..e72be99 100644 --- a/ContextMenu/ContextMenu.swift +++ b/ContextMenu/ContextMenu.swift @@ -13,6 +13,7 @@ public class ContextMenu: NSObject { public static let shared = ContextMenu() internal var item: Item? + internal let haptics = UISelectionFeedbackGenerator() public func show( sourceViewController: UIViewController, @@ -20,6 +21,10 @@ public class ContextMenu: NSObject { options: Options = Options(), sourceView: UIView? = nil ) { + if options.haptics { + haptics.selectionChanged() + } + let item = Item( viewController: viewController, options: options, diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index 144b3d7..c86c27d 100644 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -63,13 +63,13 @@ 2971CEA4205454BD00342296 /* Example */ = { isa = PBXGroup; children = ( - 2971CEB72054553400342296 /* MenuViewController.swift */, 2971CEA5205454BD00342296 /* AppDelegate.swift */, - 2971CEA7205454BD00342296 /* ViewController.swift */, - 2971CEA9205454BD00342296 /* Main.storyboard */, 2971CEAC205454BD00342296 /* Assets.xcassets */, - 2971CEAE205454BD00342296 /* LaunchScreen.storyboard */, 2971CEB1205454BD00342296 /* Info.plist */, + 2971CEAE205454BD00342296 /* LaunchScreen.storyboard */, + 2971CEA9205454BD00342296 /* Main.storyboard */, + 2971CEB72054553400342296 /* MenuViewController.swift */, + 2971CEA7205454BD00342296 /* ViewController.swift */, ); path = Example; sourceTree = ""; diff --git a/Example/Example/ViewController.swift b/Example/Example/ViewController.swift index a80d756..24ee7cb 100644 --- a/Example/Example/ViewController.swift +++ b/Example/Example/ViewController.swift @@ -27,7 +27,7 @@ class ViewController: UIViewController { ContextMenu.shared.show( sourceViewController: self, viewController: MenuViewController(), - sourceView: nil + sourceView: button ) } diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 7df98c5..82e8794 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -9,7 +9,7 @@ EXTERNAL SOURCES: :path: ../ContextMenu.podspec SPEC CHECKSUMS: - ContextMenu: 74f68e96197cdbfb1b5d91c703cc0906bc914cfc + ContextMenu: f542992e2dd56e8a116a59a2ab5a215637982744 PODFILE CHECKSUM: aa060c7f3a10a9cb8b2633f1297c22bb65e4f54d diff --git a/Example/Pods/Local Podspecs/ContextMenu.podspec.json b/Example/Pods/Local Podspecs/ContextMenu.podspec.json index 658721c..dbc6f14 100644 --- a/Example/Pods/Local Podspecs/ContextMenu.podspec.json +++ b/Example/Pods/Local Podspecs/ContextMenu.podspec.json @@ -15,9 +15,7 @@ }, "source_files": "ContextMenu/*.swift", "platforms": { - "osx": null, - "ios": null, - "tvos": null, - "watchos": null - } + "ios": "10.0" + }, + "swift_version": "4.0" } diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock index 7df98c5..82e8794 100644 --- a/Example/Pods/Manifest.lock +++ b/Example/Pods/Manifest.lock @@ -9,7 +9,7 @@ EXTERNAL SOURCES: :path: ../ContextMenu.podspec SPEC CHECKSUMS: - ContextMenu: 74f68e96197cdbfb1b5d91c703cc0906bc914cfc + ContextMenu: f542992e2dd56e8a116a59a2ab5a215637982744 PODFILE CHECKSUM: aa060c7f3a10a9cb8b2633f1297c22bb65e4f54d diff --git a/Example/Pods/Pods.xcodeproj/project.pbxproj b/Example/Pods/Pods.xcodeproj/project.pbxproj index fe07302..1e142cb 100644 --- a/Example/Pods/Pods.xcodeproj/project.pbxproj +++ b/Example/Pods/Pods.xcodeproj/project.pbxproj @@ -7,26 +7,26 @@ objects = { /* Begin PBXBuildFile section */ - 076F001444726AABF19EDF3AE0030DE6 /* ContextMenu+Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71DDD555C4F32B86F69F2CCE692E87C1 /* ContextMenu+Item.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 124D99BD9430F3AB4A6DF8E255DCA46A /* ContextMenu+Animations.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99C513A5107C353567935F9D81AA652 /* ContextMenu+Animations.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 1B66E33B588115713F5B90C812A0139C /* ContextMenu-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F35176CEE9BAAD80281A0DF595B0D25 /* ContextMenu-dummy.m */; }; - 1EF18353721727430EEB0909C7305CFE /* SourceViewCorner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 333B6A8DDD5E59721593B55968D63FAB /* SourceViewCorner.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 21EC9664F21956FADCEF9134F909B74A /* CGRect+Area.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9E5199A0158EA7B553B582999281E75 /* CGRect+Area.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 2A9FDD9927F1A610C304492868BDC5D0 /* ContextMenuPresentationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4372D257F4D95B7947C8B75C44589837 /* ContextMenuPresentationController.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 29004463EA77E281BC76D155ADB9020F /* ContextMenuPresenting.swift in Sources */ = {isa = PBXBuildFile; fileRef = 248C9B4FF0D3F81A06280C402C567D88 /* ContextMenuPresenting.swift */; }; + 31B67E27C8932833B5F23A70D2A1A18F /* ContextMenu+ContextMenuPresentationControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E9625EE0940E5B6D28DE87B9A9AA394 /* ContextMenu+ContextMenuPresentationControllerDelegate.swift */; }; 32BD703743B0B8B75A5832596BBDD912 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; + 3363E5B3A2FD80DD2F523DEA110AD23D /* ClippedContainerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A3903BCCBC56DE7698C23F1B9D7025 /* ClippedContainerViewController.swift */; }; 40F454BB711499A3B137B3CD6180DCD4 /* Pods-Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */; }; - 5781C6CCB5DE969BD2B288E1C5324350 /* ContextMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 083F96FBD20FBEB55E326904926AB872 /* ContextMenu.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 60DB52EBDF12A3EB0DFB1DBACF33A21C /* ClippedContainerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A3903BCCBC56DE7698C23F1B9D7025 /* ClippedContainerViewController.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 6E2F766F9F48371E7CA5E0F47F1A6EEC /* ContextMenuPresenting.swift in Sources */ = {isa = PBXBuildFile; fileRef = 248C9B4FF0D3F81A06280C402C567D88 /* ContextMenuPresenting.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 511F9D7A1F1A172CA89DD401A12E442E /* ContextMenuPresentationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4372D257F4D95B7947C8B75C44589837 /* ContextMenuPresentationController.swift */; }; + 53B0CE3D9CAB2490DB94E726AA469C4B /* ContextMenu+ContainerStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F09346CD57031C9F4615B373489CCB0 /* ContextMenu+ContainerStyle.swift */; }; + 5789B58F3338651E84452B085E2CC7AA /* ContextMenuDismissing.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4458DFE4EB0642A02F5AFCD928B409F7 /* ContextMenuDismissing.swift */; }; + 6044456AABCB0211A94A96C4E7C41CF4 /* ContextMenu+Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71DDD555C4F32B86F69F2CCE692E87C1 /* ContextMenu+Item.swift */; }; + 6B13209979CF19E1E726F7059AE91A89 /* ContextMenu+UIViewControllerTransitioningDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15DBAFC09AB1344CE2E45DEE323F5406 /* ContextMenu+UIViewControllerTransitioningDelegate.swift */; }; 71B3B8136D9A8DACBBD76C3B1272FE02 /* Pods-Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 787A1CED76E70C77A3DD9B9B7752812C /* ContextMenu+Options.swift in Sources */ = {isa = PBXBuildFile; fileRef = 474D16CA3C348A373EFF57AD26B722F2 /* ContextMenu+Options.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - 815B8988E0BCCDEF999236F4D8559306 /* ContextMenu+MenuStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62168363D7BF0CE18A35DC197FA28EE2 /* ContextMenu+MenuStyle.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + 75A781BF4CB0EDE380DD15E4D504B69D /* ContextMenu+Options.swift in Sources */ = {isa = PBXBuildFile; fileRef = 474D16CA3C348A373EFF57AD26B722F2 /* ContextMenu+Options.swift */; }; + 8BA5F415846C5CDFB898F992F514425D /* ContextMenu-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F35176CEE9BAAD80281A0DF595B0D25 /* ContextMenu-dummy.m */; }; + A912935A70F53FE5706F816CA00A1B87 /* ContextMenu+Animations.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99C513A5107C353567935F9D81AA652 /* ContextMenu+Animations.swift */; }; B249B66E738181ADC06D5F535E15ACB4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; - C0BD94C6FD169D88161473F1C6250C0A /* ContextMenuDismissing.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4458DFE4EB0642A02F5AFCD928B409F7 /* ContextMenuDismissing.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + B495981AA0156AED9F5AFF5427AC4B99 /* SourceViewCorner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 333B6A8DDD5E59721593B55968D63FAB /* SourceViewCorner.swift */; }; C688343B3B6107C07545D1AB5A931DF3 /* ContextMenu-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = C3EAB79C04F9B0D923F8793CFDA2DD07 /* ContextMenu-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - CC1D347FD60D409088D72BEB33249564 /* ContextMenu+UIViewControllerTransitioningDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15DBAFC09AB1344CE2E45DEE323F5406 /* ContextMenu+UIViewControllerTransitioningDelegate.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - D50CEA488C152C5FE3F547F038B7BCC0 /* ContextMenu+ContextMenuPresentationControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E9625EE0940E5B6D28DE87B9A9AA394 /* ContextMenu+ContextMenuPresentationControllerDelegate.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; - ED8938E64121FD9659C3469F672F1B50 /* ContextMenu+ContainerStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F09346CD57031C9F4615B373489CCB0 /* ContextMenu+ContainerStyle.swift */; settings = {COMPILER_FLAGS = "-DOS_OBJECT_USE_OBJC=0"; }; }; + E119E1F08583FB65F0EEA26D35A963A2 /* ContextMenu+MenuStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 62168363D7BF0CE18A35DC197FA28EE2 /* ContextMenu+MenuStyle.swift */; }; + EBC0F04EB8E02903FAF43834427C054B /* CGRect+Area.swift in Sources */ = {isa = PBXBuildFile; fileRef = E9E5199A0158EA7B553B582999281E75 /* CGRect+Area.swift */; }; + EBDF697639505492990E5BBA82E23F14 /* ContextMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 083F96FBD20FBEB55E326904926AB872 /* ContextMenu.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -261,7 +261,7 @@ isa = PBXNativeTarget; buildConfigurationList = 11FA8D253AF9022C08CF03380C0FABE1 /* Build configuration list for PBXNativeTarget "ContextMenu" */; buildPhases = ( - 5C41E0B82C7A128B2905EE8DE18BB314 /* Sources */, + 25FAA96C2EC5D6480E5D9FFD213E689E /* Sources */, 11A115FAF4DA547D1E09F39B8EBE85F1 /* Frameworks */, AF762F200BA5827FC8DC4B06A78DC0F9 /* Headers */, ); @@ -302,25 +302,25 @@ /* End PBXProject section */ /* Begin PBXSourcesBuildPhase section */ - 5C41E0B82C7A128B2905EE8DE18BB314 /* Sources */ = { + 25FAA96C2EC5D6480E5D9FFD213E689E /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 21EC9664F21956FADCEF9134F909B74A /* CGRect+Area.swift in Sources */, - 60DB52EBDF12A3EB0DFB1DBACF33A21C /* ClippedContainerViewController.swift in Sources */, - 124D99BD9430F3AB4A6DF8E255DCA46A /* ContextMenu+Animations.swift in Sources */, - ED8938E64121FD9659C3469F672F1B50 /* ContextMenu+ContainerStyle.swift in Sources */, - D50CEA488C152C5FE3F547F038B7BCC0 /* ContextMenu+ContextMenuPresentationControllerDelegate.swift in Sources */, - 076F001444726AABF19EDF3AE0030DE6 /* ContextMenu+Item.swift in Sources */, - 815B8988E0BCCDEF999236F4D8559306 /* ContextMenu+MenuStyle.swift in Sources */, - 787A1CED76E70C77A3DD9B9B7752812C /* ContextMenu+Options.swift in Sources */, - CC1D347FD60D409088D72BEB33249564 /* ContextMenu+UIViewControllerTransitioningDelegate.swift in Sources */, - 1B66E33B588115713F5B90C812A0139C /* ContextMenu-dummy.m in Sources */, - 5781C6CCB5DE969BD2B288E1C5324350 /* ContextMenu.swift in Sources */, - C0BD94C6FD169D88161473F1C6250C0A /* ContextMenuDismissing.swift in Sources */, - 2A9FDD9927F1A610C304492868BDC5D0 /* ContextMenuPresentationController.swift in Sources */, - 6E2F766F9F48371E7CA5E0F47F1A6EEC /* ContextMenuPresenting.swift in Sources */, - 1EF18353721727430EEB0909C7305CFE /* SourceViewCorner.swift in Sources */, + EBC0F04EB8E02903FAF43834427C054B /* CGRect+Area.swift in Sources */, + 3363E5B3A2FD80DD2F523DEA110AD23D /* ClippedContainerViewController.swift in Sources */, + A912935A70F53FE5706F816CA00A1B87 /* ContextMenu+Animations.swift in Sources */, + 53B0CE3D9CAB2490DB94E726AA469C4B /* ContextMenu+ContainerStyle.swift in Sources */, + 31B67E27C8932833B5F23A70D2A1A18F /* ContextMenu+ContextMenuPresentationControllerDelegate.swift in Sources */, + 6044456AABCB0211A94A96C4E7C41CF4 /* ContextMenu+Item.swift in Sources */, + E119E1F08583FB65F0EEA26D35A963A2 /* ContextMenu+MenuStyle.swift in Sources */, + 75A781BF4CB0EDE380DD15E4D504B69D /* ContextMenu+Options.swift in Sources */, + 6B13209979CF19E1E726F7059AE91A89 /* ContextMenu+UIViewControllerTransitioningDelegate.swift in Sources */, + 8BA5F415846C5CDFB898F992F514425D /* ContextMenu-dummy.m in Sources */, + EBDF697639505492990E5BBA82E23F14 /* ContextMenu.swift in Sources */, + 5789B58F3338651E84452B085E2CC7AA /* ContextMenuDismissing.swift in Sources */, + 511F9D7A1F1A172CA89DD401A12E442E /* ContextMenuPresentationController.swift in Sources */, + 29004463EA77E281BC76D155ADB9020F /* ContextMenuPresenting.swift in Sources */, + B495981AA0156AED9F5AFF5427AC4B99 /* SourceViewCorner.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -442,10 +442,11 @@ }; name = Debug; }; - 88C55FD0D32E908EE2717AA95BF9185A /* Release */ = { + 8042280493369F6D934721FDD6DBF7D4 /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 5A5ED5343F3693436571E370FA1D9B25 /* ContextMenu.xcconfig */; buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; CODE_SIGN_IDENTITY = ""; "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; @@ -458,7 +459,7 @@ GCC_PREFIX_HEADER = "Target Support Files/ContextMenu/ContextMenu-prefix.pch"; INFOPLIST_FILE = "Target Support Files/ContextMenu/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MODULEMAP_FILE = "Target Support Files/ContextMenu/ContextMenu.modulemap"; PRODUCT_NAME = ContextMenu; @@ -474,37 +475,6 @@ }; name = Release; }; - 9AE385182761F2A5528F32131331D1CB /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5A5ED5343F3693436571E370FA1D9B25 /* ContextMenu.xcconfig */; - buildSettings = { - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - GCC_PREFIX_HEADER = "Target Support Files/ContextMenu/ContextMenu-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/ContextMenu/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/ContextMenu/ContextMenu.modulemap"; - PRODUCT_NAME = ContextMenu; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; C72736E31C25E34B154DFAA69EFB6E7F /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */; @@ -598,14 +568,46 @@ }; name = Release; }; + D70C72D4BCD06ED83B9D9D35B9EC3B52 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5A5ED5343F3693436571E370FA1D9B25 /* ContextMenu.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/ContextMenu/ContextMenu-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/ContextMenu/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MODULEMAP_FILE = "Target Support Files/ContextMenu/ContextMenu.modulemap"; + PRODUCT_NAME = ContextMenu; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 11FA8D253AF9022C08CF03380C0FABE1 /* Build configuration list for PBXNativeTarget "ContextMenu" */ = { isa = XCConfigurationList; buildConfigurations = ( - 9AE385182761F2A5528F32131331D1CB /* Debug */, - 88C55FD0D32E908EE2717AA95BF9185A /* Release */, + D70C72D4BCD06ED83B9D9D35B9EC3B52 /* Debug */, + 8042280493369F6D934721FDD6DBF7D4 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release;