24 Commits

Author SHA1 Message Date
Ryan Nystrom 3186f54db5 Merge pull request #32 from GitHawkApp/bump-version
Bump pod version
2018-08-04 18:09:42 -04:00
Ryan Nystrom 06297df85f Bump pod version 2018-08-04 18:09:29 -04:00
Ryan Nystrom cc36499919 Merge pull request #31 from GitHawkApp/keyboard
Respond to keyboard presentation
2018-08-04 18:08:50 -04:00
Ryan Nystrom 0dadf7c8d7 Merge pull request #26 from GitHawkApp/corners-bug
Add corner math unit tests and make init private
2018-08-04 18:08:22 -04:00
Ryan Nystrom d30c57a5a8 Respond to keyboard presentation 2018-08-04 18:07:12 -04:00
Ryan Nystrom e7cf153f3c Merge pull request #28 from GitHawkApp/shadow-offset
Add shadow offset API and more noticeable defaults
2018-07-15 19:48:21 -04:00
Ryan Nystrom 95489cd2bf Add shadow offset API and more noticeable defaults 2018-07-15 19:48:04 -04:00
Ryan Nystrom 7bd9f9c408 Merge pull request #27 from pradeepb28/Feature/feedbackstyle_customization
Allow to use any feedback style
2018-07-09 14:22:28 -04:00
Pradeep 34f5b61af7 Allow to use any feedback style 2018-07-09 12:04:03 +05:30
Ryan Nystrom b5b8531fa3 make init of menu private 2018-05-28 15:01:34 -04:00
Ryan Nystrom 59b52e5217 add nil test 2018-05-28 14:03:55 -04:00
Ryan Nystrom 710cb18b83 passing corner tests 2018-05-28 14:01:45 -04:00
Ryan Nystrom 046d08e2c5 add no-padding test 2018-05-28 13:45:48 -04:00
Ryan Nystrom 97fc51eb1f add unit tests for corners 2018-05-28 13:44:01 -04:00
Ryan Nystrom 82fa81b1ab Merge pull request #24 from GitHawkApp/travis
Setup Travis CI
2018-04-22 15:37:21 -04:00
Ryan Nystrom 71d45111c5 use script 2018-04-22 14:45:16 -04:00
Ryan Nystrom 8a34ba3126 Setup Travis CI 2018-04-22 14:34:49 -04:00
Ryan Nystrom 93e467cef9 bump to version 0.2.0 2018-04-09 12:05:34 -04:00
Ryan Nystrom 188307e095 Merge pull request #19 from marcuswu0814/feature/AddingDelegateAsParamToHelperExtension
Adding delegate as an optional param to UIViewController extension
2018-03-17 23:07:52 -04:00
Marcus Wu dea9bfd210 Adding delegate as an option param to UIViewController extension 2018-03-18 06:00:10 +08:00
Ryan Nystrom bac5362e41 Merge pull request #17 from GitHawkApp/delegate
Add menu delegate for dismiss
2018-03-15 19:56:11 -04:00
Ryan Nystrom 4637d95787 docs 2018-03-15 19:55:38 -04:00
Ryan Nystrom bc9d777a2c add dismiss delegate 2018-03-15 19:54:19 -04:00
Ryan Nystrom 2c51957a05 Merge pull request #16 from GitHawkApp/reduce-motion
Ignore motion effect if reduce motion is turned on
2018-03-14 18:45:28 -04:00
28 changed files with 627 additions and 183 deletions
+4
View File
@@ -0,0 +1,4 @@
language: swift
osx_image: xcode9.3
script:
- xcodebuild clean -project ContextMenu.xcodeproj -scheme ContextMenu -destination "platform=iOS Simulator,name=iPhone X,OS=11.3" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -quiet
+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'ContextMenu'
spec.version = '0.1.0'
spec.version = '0.3.0'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/GitHawkApp/ContextMenu'
spec.authors = { 'Ryan Nystrom' => 'rnystrom@whoisryannystrom.com' }
+138
View File
@@ -22,9 +22,24 @@
2971CE96205453D900342296 /* SourceViewCorner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2971CE88205453D900342296 /* SourceViewCorner.swift */; };
2971CE97205453D900342296 /* ContextMenuPresenting.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2971CE89205453D900342296 /* ContextMenuPresenting.swift */; };
2971CE98205453D900342296 /* CGRect+Area.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2971CE8A205453D900342296 /* CGRect+Area.swift */; };
298D3AEE205B398500EDFB66 /* ContextMenuDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 298D3AED205B398500EDFB66 /* ContextMenuDelegate.swift */; };
2991418720BC757100B63A3B /* CGRect_AreaTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2991418620BC757100B63A3B /* CGRect_AreaTests.swift */; };
2991418920BC757100B63A3B /* ContextMenu.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2971CE722054539900342296 /* ContextMenu.framework */; };
2991419020BC77FA00B63A3B /* CGRect+DominantCorner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2991418F20BC77FA00B63A3B /* CGRect+DominantCorner.swift */; };
2991419220BC789D00B63A3B /* CGRect_DominantCornerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2991419120BC789D00B63A3B /* CGRect_DominantCornerTests.swift */; };
DE5D838B2055D72A0069A81D /* UIViewController+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE5D838A2055D72A0069A81D /* UIViewController+Extensions.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
2991418A20BC757100B63A3B /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 2971CE692054539900342296 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 2971CE712054539900342296;
remoteInfo = ContextMenu;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
2971CE722054539900342296 /* ContextMenu.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ContextMenu.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2971CE752054539900342296 /* ContextMenu.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ContextMenu.h; sourceTree = "<group>"; };
@@ -43,6 +58,12 @@
2971CE88205453D900342296 /* SourceViewCorner.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SourceViewCorner.swift; sourceTree = "<group>"; };
2971CE89205453D900342296 /* ContextMenuPresenting.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContextMenuPresenting.swift; sourceTree = "<group>"; };
2971CE8A205453D900342296 /* CGRect+Area.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "CGRect+Area.swift"; sourceTree = "<group>"; };
298D3AED205B398500EDFB66 /* ContextMenuDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContextMenuDelegate.swift; sourceTree = "<group>"; };
2991418420BC757000B63A3B /* ContextMenuTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ContextMenuTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
2991418620BC757100B63A3B /* CGRect_AreaTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CGRect_AreaTests.swift; sourceTree = "<group>"; };
2991418820BC757100B63A3B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2991418F20BC77FA00B63A3B /* CGRect+DominantCorner.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CGRect+DominantCorner.swift"; sourceTree = "<group>"; };
2991419120BC789D00B63A3B /* CGRect_DominantCornerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CGRect_DominantCornerTests.swift; sourceTree = "<group>"; };
DE5D838A2055D72A0069A81D /* UIViewController+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIViewController+Extensions.swift"; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -54,6 +75,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
2991418120BC757000B63A3B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
2991418920BC757100B63A3B /* ContextMenu.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@@ -61,6 +90,7 @@
isa = PBXGroup;
children = (
2971CE742054539900342296 /* ContextMenu */,
2991418520BC757100B63A3B /* ContextMenuTests */,
2971CE732054539900342296 /* Products */,
);
sourceTree = "<group>";
@@ -69,6 +99,7 @@
isa = PBXGroup;
children = (
2971CE722054539900342296 /* ContextMenu.framework */,
2991418420BC757000B63A3B /* ContextMenuTests.xctest */,
);
name = Products;
sourceTree = "<group>";
@@ -77,6 +108,7 @@
isa = PBXGroup;
children = (
2971CE8A205453D900342296 /* CGRect+Area.swift */,
2991418F20BC77FA00B63A3B /* CGRect+DominantCorner.swift */,
2971CE87205453D900342296 /* ClippedContainerViewController.swift */,
2971CE752054539900342296 /* ContextMenu.h */,
2971CE84205453D900342296 /* ContextMenu.swift */,
@@ -87,6 +119,7 @@
2971CE86205453D900342296 /* ContextMenu+MenuStyle.swift */,
2971CE7E205453D800342296 /* ContextMenu+Options.swift */,
2971CE7F205453D800342296 /* ContextMenu+UIViewControllerTransitioningDelegate.swift */,
298D3AED205B398500EDFB66 /* ContextMenuDelegate.swift */,
2971CE82205453D900342296 /* ContextMenuDismissing.swift */,
2971CE7D205453D800342296 /* ContextMenuPresentationController.swift */,
2971CE89205453D900342296 /* ContextMenuPresenting.swift */,
@@ -97,6 +130,16 @@
path = ContextMenu;
sourceTree = "<group>";
};
2991418520BC757100B63A3B /* ContextMenuTests */ = {
isa = PBXGroup;
children = (
2991418620BC757100B63A3B /* CGRect_AreaTests.swift */,
2991419120BC789D00B63A3B /* CGRect_DominantCornerTests.swift */,
2991418820BC757100B63A3B /* Info.plist */,
);
path = ContextMenuTests;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
@@ -129,12 +172,31 @@
productReference = 2971CE722054539900342296 /* ContextMenu.framework */;
productType = "com.apple.product-type.framework";
};
2991418320BC757000B63A3B /* ContextMenuTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 2991418E20BC757100B63A3B /* Build configuration list for PBXNativeTarget "ContextMenuTests" */;
buildPhases = (
2991418020BC757000B63A3B /* Sources */,
2991418120BC757000B63A3B /* Frameworks */,
2991418220BC757000B63A3B /* Resources */,
);
buildRules = (
);
dependencies = (
2991418B20BC757100B63A3B /* PBXTargetDependency */,
);
name = ContextMenuTests;
productName = ContextMenuTests;
productReference = 2991418420BC757000B63A3B /* ContextMenuTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
2971CE692054539900342296 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0930;
LastUpgradeCheck = 0920;
ORGANIZATIONNAME = "Ryan Nystrom";
TargetAttributes = {
@@ -143,6 +205,10 @@
LastSwiftMigration = 0920;
ProvisioningStyle = Automatic;
};
2991418320BC757000B63A3B = {
CreatedOnToolsVersion = 9.3;
ProvisioningStyle = Automatic;
};
};
};
buildConfigurationList = 2971CE6C2054539900342296 /* Build configuration list for PBXProject "ContextMenu" */;
@@ -158,6 +224,7 @@
projectRoot = "";
targets = (
2971CE712054539900342296 /* ContextMenu */,
2991418320BC757000B63A3B /* ContextMenuTests */,
);
};
/* End PBXProject section */
@@ -170,6 +237,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
2991418220BC757000B63A3B /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@@ -186,17 +260,36 @@
2971CE8E205453D900342296 /* ContextMenu+ContainerStyle.swift in Sources */,
DE5D838B2055D72A0069A81D /* UIViewController+Extensions.swift in Sources */,
2971CE95205453D900342296 /* ClippedContainerViewController.swift in Sources */,
298D3AEE205B398500EDFB66 /* ContextMenuDelegate.swift in Sources */,
2971CE96205453D900342296 /* SourceViewCorner.swift in Sources */,
2971CE8F205453D900342296 /* ContextMenu+Item.swift in Sources */,
2971CE8B205453D900342296 /* ContextMenuPresentationController.swift in Sources */,
2971CE8C205453D900342296 /* ContextMenu+Options.swift in Sources */,
2991419020BC77FA00B63A3B /* CGRect+DominantCorner.swift in Sources */,
2971CE92205453D900342296 /* ContextMenu.swift in Sources */,
2971CE8D205453D900342296 /* ContextMenu+UIViewControllerTransitioningDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
2991418020BC757000B63A3B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2991419220BC789D00B63A3B /* CGRect_DominantCornerTests.swift in Sources */,
2991418720BC757100B63A3B /* CGRect_AreaTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
2991418B20BC757100B63A3B /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 2971CE712054539900342296 /* ContextMenu */;
targetProxy = 2991418A20BC757100B63A3B /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
2971CE782054539900342296 /* Debug */ = {
isa = XCBuildConfiguration;
@@ -356,6 +449,42 @@
};
name = Release;
};
2991418C20BC757100B63A3B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 523C4DWBTH;
INFOPLIST_FILE = ContextMenuTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.whoisryannystrom.ContextMenuTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
2991418D20BC757100B63A3B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 523C4DWBTH;
INFOPLIST_FILE = ContextMenuTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.whoisryannystrom.ContextMenuTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@@ -377,6 +506,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
2991418E20BC757100B63A3B /* Build configuration list for PBXNativeTarget "ContextMenuTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
2991418C20BC757100B63A3B /* Debug */,
2991418D20BC757100B63A3B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 2971CE692054539900342296 /* Project object */;
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
@@ -26,10 +26,28 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2991418320BC757000B63A3B"
BuildableName = "ContextMenuTests.xctest"
BlueprintName = "ContextMenuTests"
ReferencedContainer = "container:ContextMenu.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2971CE712054539900342296"
BuildableName = "ContextMenu.framework"
BlueprintName = "ContextMenu"
ReferencedContainer = "container:ContextMenu.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
@@ -37,7 +55,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
+33
View File
@@ -0,0 +1,33 @@
//
// CGRect+DominantCorner.swift
// ContextMenu
//
// Created by Ryan Nystrom on 5/28/18.
// Copyright © 2018 Ryan Nystrom. All rights reserved.
//
import UIKit
extension CGRect {
func dominantCorner(in rect: CGRect) -> SourceViewCorner? {
let corners: [SourceViewCorner] = [
SourceViewCorner(point: CGPoint(x: rect.minX, y: rect.minY), position: .topLeft),
SourceViewCorner(point: CGPoint(x: rect.maxX, y: rect.minY), position: .topRight),
SourceViewCorner(point: CGPoint(x: rect.minX, y: rect.maxY), position: .bottomLeft),
SourceViewCorner(point: CGPoint(x: rect.maxX, y: rect.maxY), position: .bottomRight),
]
var maxArea: CGFloat = 0
var maxCorner: SourceViewCorner? = nil
for corner in corners {
let area = self.area(corner: corner)
if area > maxArea {
maxArea = area
maxCorner = corner
}
}
return maxCorner
}
}
@@ -10,10 +10,13 @@ import UIKit
class ClippedContainerViewController: UIViewController {
let viewController: UIViewController
private let options: ContextMenu.Options
private let containedViewController: UINavigationController
init(options: ContextMenu.Options, viewController: UIViewController) {
self.viewController = viewController
self.options = options
self.containedViewController = UINavigationController(rootViewController: viewController)
super.init(nibName: nil, bundle: nil)
@@ -29,6 +32,7 @@ class ClippedContainerViewController: UIViewController {
view.layer.cornerRadius = options.containerStyle.cornerRadius
view.layer.shadowRadius = options.containerStyle.shadowRadius
view.layer.shadowOpacity = options.containerStyle.shadowOpacity
view.layer.shadowOffset = options.containerStyle.shadowOffset
view.layer.shadowColor = UIColor.black.cgColor
view.backgroundColor = options.containerStyle.backgroundColor
+7 -2
View File
@@ -22,6 +22,9 @@ extension ContextMenu {
/// The shadow opacity of the menu container. The shadow color is `UIColor.black`.
public let shadowOpacity: Float
/// The shadow offset of the menu container.
public let shadowOffset: CGSize
/// The padding from the source-view corner to apply to the x-axis. Positive is further away.
public let xPadding: CGFloat
@@ -43,8 +46,9 @@ extension ContextMenu {
public init(
cornerRadius: CGFloat = 8,
shadowRadius: CGFloat = 15,
shadowOpacity: Float = 0.1,
shadowRadius: CGFloat = 10,
shadowOpacity: Float = 0.4,
shadowOffset: CGSize = CGSize(width: 0, height: 2),
xPadding: CGFloat = 8,
yPadding: CGFloat = 8,
edgePadding: CGFloat = 15,
@@ -55,6 +59,7 @@ extension ContextMenu {
self.cornerRadius = cornerRadius
self.shadowRadius = shadowRadius
self.shadowOpacity = shadowOpacity
self.shadowOffset = shadowOffset
self.xPadding = xPadding
self.yPadding = yPadding
self.edgePadding = edgePadding
+4 -1
View File
@@ -16,15 +16,18 @@ extension ContextMenu {
let viewController: ClippedContainerViewController
weak var sourceView: UIView?
weak var delegate: ContextMenuDelegate?
init(
viewController: UIViewController,
options: Options,
sourceView: UIView?
sourceView: UIView?,
delegate: ContextMenuDelegate?
) {
self.viewController = ClippedContainerViewController(options: options, viewController: viewController)
self.options = options
self.sourceView = sourceView
self.delegate = delegate
}
}
+3 -3
View File
@@ -23,18 +23,18 @@ extension ContextMenu {
let menuStyle: MenuStyle
/// Trigger haptic feedback when the menu is shown.
let haptics: Bool
let hapticsStyle: UIImpactFeedbackStyle?
public init(
durations: AnimationDurations = AnimationDurations(),
containerStyle: ContainerStyle = ContainerStyle(),
menuStyle: MenuStyle = .default,
haptics: Bool = true
hapticsStyle: UIImpactFeedbackStyle? = nil
) {
self.durations = durations
self.containerStyle = containerStyle
self.menuStyle = menuStyle
self.haptics = haptics
self.hapticsStyle = hapticsStyle
}
}
+8 -4
View File
@@ -15,8 +15,8 @@ public class ContextMenu: NSObject {
public static let shared = ContextMenu()
var item: Item?
let haptics = UIImpactFeedbackGenerator(style: .medium)
private override init() {}
/// Show a context menu from a view controller with given options.
///
@@ -25,24 +25,28 @@ public class ContextMenu: NSObject {
/// - viewController: A content view controller to use inside the menu.
/// - options: Display and behavior options for a menu.
/// - sourceView: A source view for menu context. If nil, menu displays from the center of the screen.
/// - delegate: A delegate the receives events when the menu changes.
public func show(
sourceViewController: UIViewController,
viewController: UIViewController,
options: Options = Options(),
sourceView: UIView? = nil
sourceView: UIView? = nil,
delegate: ContextMenuDelegate? = nil
) {
if let previous = self.item {
previous.viewController.dismiss(animated: false)
}
if options.haptics {
if let style = options.hapticsStyle {
let haptics = UIImpactFeedbackGenerator(style: style)
haptics.impactOccurred()
}
let item = Item(
viewController: viewController,
options: options,
sourceView: sourceView
sourceView: sourceView,
delegate: delegate
)
self.item = item
+14
View File
@@ -0,0 +1,14 @@
//
// ContextMenuDelegate.swift
// ContextMenu
//
// Created by Ryan Nystrom on 3/15/18.
// Copyright © 2018 Ryan Nystrom. All rights reserved.
//
import UIKit
public protocol ContextMenuDelegate: class {
func contextMenuWillDismiss(viewController: UIViewController, animated: Bool)
func contextMenuDidDismiss(viewController: UIViewController, animated: Bool)
}
+5
View File
@@ -19,9 +19,14 @@ class ContextMenuDismissing: NSObject, UIViewControllerAnimatedTransitioning {
func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {
guard let fromViewController = transitionContext.viewController(forKey: .from) else { return }
let delegate = item.delegate
let viewController = item.viewController.viewController
let animated = transitionContext.isAnimated
delegate?.contextMenuWillDismiss(viewController: viewController, animated: animated)
UIView.animate(withDuration: transitionDuration(using: transitionContext), animations: {
fromViewController.view.alpha = 0
}) { _ in
delegate?.contextMenuDidDismiss(viewController: viewController, animated: animated)
transitionContext.completeTransition(true)
}
}
@@ -16,10 +16,29 @@ class ContextMenuPresentationController: UIPresentationController {
weak var contextDelegate: ContextMenuPresentationControllerDelegate?
let item: ContextMenu.Item
var keyboardSpace: CGFloat = 0
init(presentedViewController: UIViewController, presenting presentingViewController: UIViewController?, item: ContextMenu.Item) {
self.item = item
super.init(presentedViewController: presentedViewController, presenting: presentingViewController)
NotificationCenter.default.addObserver(
self,
selector: #selector(onKeyboard(notification:)),
name: .UIKeyboardWillShow,
object: nil
)
NotificationCenter.default.addObserver(
self,
selector: #selector(onKeyboard(notification:)),
name: .UIKeyboardWillHide,
object: nil
)
NotificationCenter.default.addObserver(
self,
selector: #selector(onKeyboard(notification:)),
name: .UIKeyboardWillChangeFrame,
object: nil
)
}
lazy var overlayView: UIView = {
@@ -34,23 +53,7 @@ class ContextMenuPresentationController: UIPresentationController {
let frame = item.sourceView?.superview?.convert(sourceViewFrame, to: containerView)
else { return nil}
let corners: [SourceViewCorner] = [
SourceViewCorner(point: CGPoint(x: frame.minX, y: frame.minY), position: .topLeft),
SourceViewCorner(point: CGPoint(x: frame.maxX, y: frame.minY), position: .topRight),
SourceViewCorner(point: CGPoint(x: frame.minX, y: frame.maxY), position: .bottomLeft),
SourceViewCorner(point: CGPoint(x: frame.maxX, y: frame.maxY), position: .bottomRight),
]
var maxArea: CGFloat = 0
var maxCorner: SourceViewCorner? = nil
for corner in corners {
let area = containerView.bounds.area(corner: corner)
if area > maxArea {
maxArea = area
maxCorner = corner
}
}
return maxCorner
return containerView.bounds.dominantCorner(in: frame)
}
override var frameOfPresentedViewInContainerView: CGRect {
@@ -73,7 +76,7 @@ class ContextMenuPresentationController: UIPresentationController {
} else {
return CGRect(
x: (containerBounds.width - size.width)/2,
y: (containerBounds.height - size.height)/2,
y: (containerBounds.height - keyboardSpace - size.height)/2,
width: size.width,
height: size.height
)
@@ -158,4 +161,16 @@ class ContextMenuPresentationController: UIPresentationController {
}
}
@objc func onKeyboard(notification: Notification) {
guard let frame = notification.userInfo?[UIKeyboardFrameEndUserInfoKey] as? CGRect,
let duration = notification.userInfo?[UIKeyboardAnimationDurationUserInfoKey] as? TimeInterval,
let containerView = self.containerView
else { return }
keyboardSpace = containerView.bounds.height - frame.minY
UIView.animate(withDuration: duration) {
containerView.setNeedsLayout()
containerView.layoutIfNeeded()
}
}
}
+1 -1
View File
@@ -10,7 +10,7 @@ import UIKit
struct SourceViewCorner {
enum Position {
enum Position: Int {
case topLeft
case topRight
case bottomLeft
@@ -17,17 +17,20 @@ extension UIViewController {
/// - viewController: A content view controller to use inside the menu.
/// - options: Display and behavior options for a menu.
/// - sourceView: A source view for menu context. If nil, menu displays from the center of the screen.
/// - delegate: A delegate the receives events when the menu changes.
public func showContextualMenu(
_ viewController: UIViewController,
options: ContextMenu.Options = ContextMenu.Options(),
sourceView: UIView? = nil
sourceView: UIView? = nil,
delegate: ContextMenuDelegate? = nil
) {
ContextMenu.shared.show(
sourceViewController: self,
viewController: viewController,
options: options,
sourceView: sourceView
sourceView: sourceView,
delegate: delegate
)
}
}
+30
View File
@@ -0,0 +1,30 @@
//
// ContextMenuTests.swift
// ContextMenuTests
//
// Created by Ryan Nystrom on 5/28/18.
// Copyright © 2018 Ryan Nystrom. All rights reserved.
//
import XCTest
@testable import ContextMenu
class CGRect_AreaTests: XCTestCase {
let rect = CGRect(x: 0, y: 0, width: 100, height: 100)
func test_whenCornersHavePadding() {
XCTAssertEqual(rect.area(corner: SourceViewCorner(point: CGPoint(x: 10, y: 10), position: .topLeft)), 100)
XCTAssertEqual(rect.area(corner: SourceViewCorner(point: CGPoint(x: 90, y: 10), position: .topRight)), 100)
XCTAssertEqual(rect.area(corner: SourceViewCorner(point: CGPoint(x: 90, y: 90), position: .bottomRight)), 100)
XCTAssertEqual(rect.area(corner: SourceViewCorner(point: CGPoint(x: 10, y: 90), position: .bottomLeft)), 100)
}
func test_whenCornersHaveNoPadding() {
XCTAssertEqual(rect.area(corner: SourceViewCorner(point: CGPoint(x: 0, y: 0), position: .topLeft)), 0)
XCTAssertEqual(rect.area(corner: SourceViewCorner(point: CGPoint(x: 100, y: 0), position: .topRight)), 0)
XCTAssertEqual(rect.area(corner: SourceViewCorner(point: CGPoint(x: 100, y: 100), position: .bottomRight)), 0)
XCTAssertEqual(rect.area(corner: SourceViewCorner(point: CGPoint(x: 00, y: 100), position: .bottomLeft)), 0)
}
}
@@ -0,0 +1,36 @@
//
// CGRect_DominantCornerTests.swift
// ContextMenuTests
//
// Created by Ryan Nystrom on 5/28/18.
// Copyright © 2018 Ryan Nystrom. All rights reserved.
//
import XCTest
@testable import ContextMenu
class CGRect_DominantCornerTests: XCTestCase {
let rect = CGRect(x: 0, y: 0, width: 100, height: 100)
func test_whenCornerExists_withTopLeft() {
XCTAssertEqual(rect.dominantCorner(in: CGRect(x: 11, y: 11, width: 80, height: 80))?.position, .topLeft)
}
func test_whenCornerExists_withTopRight() {
XCTAssertEqual(rect.dominantCorner(in: CGRect(x: 9, y: 11, width: 80, height: 80))?.position, .topRight)
}
func test_whenCornerExists_withBottomLeft() {
XCTAssertEqual(rect.dominantCorner(in: CGRect(x: 11, y: 9, width: 80, height: 80))?.position, .bottomLeft)
}
func test_whenCornerExists_withBottomRight() {
XCTAssertEqual(rect.dominantCorner(in: CGRect(x: 9, y: 9, width: 80, height: 80))?.position, .bottomRight)
}
func test_whenCornersEqual_thatReturnsNil() {
XCTAssertNil(rect.dominantCorner(in: rect))
}
}
+22
View File
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
@@ -13,6 +13,7 @@
2971CEAD205454BD00342296 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2971CEAC205454BD00342296 /* Assets.xcassets */; };
2971CEB0205454BD00342296 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2971CEAE205454BD00342296 /* LaunchScreen.storyboard */; };
2971CEB82054553400342296 /* MenuViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2971CEB72054553400342296 /* MenuViewController.swift */; };
29DE277C211654E800556C44 /* KeyboardMenuViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29DE277B211654E800556C44 /* KeyboardMenuViewController.swift */; };
5D9BB1BB05FE1C79E1E43B74 /* Pods_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 67EA137013E06182CC4BE858 /* Pods_Example.framework */; };
/* End PBXBuildFile section */
@@ -25,6 +26,7 @@
2971CEAF205454BD00342296 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
2971CEB1205454BD00342296 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2971CEB72054553400342296 /* MenuViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MenuViewController.swift; sourceTree = "<group>"; };
29DE277B211654E800556C44 /* KeyboardMenuViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyboardMenuViewController.swift; sourceTree = "<group>"; };
445EDEAD1EC427ACF9B0E27F /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig"; sourceTree = "<group>"; };
67EA137013E06182CC4BE858 /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
A8435E3320DB10C18B762D4A /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig"; sourceTree = "<group>"; };
@@ -66,6 +68,7 @@
2971CEA5205454BD00342296 /* AppDelegate.swift */,
2971CEAC205454BD00342296 /* Assets.xcassets */,
2971CEB1205454BD00342296 /* Info.plist */,
29DE277B211654E800556C44 /* KeyboardMenuViewController.swift */,
2971CEAE205454BD00342296 /* LaunchScreen.storyboard */,
2971CEA9205454BD00342296 /* Main.storyboard */,
2971CEB72054553400342296 /* MenuViewController.swift */,
@@ -220,6 +223,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
29DE277C211654E800556C44 /* KeyboardMenuViewController.swift in Sources */,
2971CEA8205454BD00342296 /* ViewController.swift in Sources */,
2971CEB82054553400342296 /* MenuViewController.swift in Sources */,
2971CEA6205454BD00342296 /* AppDelegate.swift in Sources */,
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
+18 -5
View File
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="e4f-v2-AZw">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="e4f-v2-AZw">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
@@ -29,25 +29,38 @@
<!--View Controller-->
<scene sceneID="rxc-Qs-SX5">
<objects>
<viewController id="EDa-Kx-2Bx" customClass="ViewController" customModule="ThingsUI" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="EDa-Kx-2Bx" customClass="ViewController" customModule="Example" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="XV0-SI-Dlz">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="detailDisclosure" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bMp-Tt-bsj">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="detailDisclosure" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bMp-Tt-bsj">
<rect key="frame" x="176" y="322" width="22" height="22"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<connections>
<action selector="onButton:" destination="EDa-Kx-2Bx" eventType="touchUpInside" id="1kc-D5-Xxx"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7wb-6n-2xQ">
<rect key="frame" x="154" y="266" width="66" height="30"/>
<state key="normal" title="Keyboard"/>
<connections>
<action selector="onKeyboardButton:" destination="EDa-Kx-2Bx" eventType="touchUpInside" id="cq5-s1-ege"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="bMp-Tt-bsj" firstAttribute="top" secondItem="7wb-6n-2xQ" secondAttribute="bottom" constant="26" id="KiU-xP-eNi"/>
<constraint firstItem="bMp-Tt-bsj" firstAttribute="centerY" secondItem="XV0-SI-Dlz" secondAttribute="centerY" id="iz2-Cf-TYK"/>
<constraint firstItem="7wb-6n-2xQ" firstAttribute="centerX" secondItem="XV0-SI-Dlz" secondAttribute="centerX" id="vZG-CE-9Aq"/>
<constraint firstItem="bMp-Tt-bsj" firstAttribute="centerX" secondItem="XV0-SI-Dlz" secondAttribute="centerX" id="zsN-8S-KnR"/>
</constraints>
<viewLayoutGuide key="safeArea" id="0wB-Wa-A20"/>
</view>
<navigationItem key="navigationItem" id="FIU-fZ-kBQ"/>
<connections>
<outlet property="button" destination="bMp-Tt-bsj" id="MPB-L4-weP"/>
<outlet property="keyboardButton" destination="7wb-6n-2xQ" id="EI3-VG-aa5"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Hcb-0m-21I" userLabel="First Responder" sceneMemberID="firstResponder"/>
@@ -0,0 +1,50 @@
//
// KeyboardMenuViewController.swift
// Example
//
// Created by Ryan Nystrom on 8/4/18.
// Copyright © 2018 Ryan Nystrom. All rights reserved.
//
import UIKit
class KeyboardMenuViewController: UIViewController {
let textView = UITextView()
override func viewDidLoad() {
super.viewDidLoad()
title = "Keyboard"
preferredContentSize = CGSize(width: 300, height: 200)
view.addSubview(textView)
textView.textContainerInset = UIEdgeInsets(top: 8, left: 15, bottom: 8, right: 15)
textView.font = UIFont.systemFont(ofSize: 18)
textView.text = "Lorem ipsum"
navigationItem.rightBarButtonItem = UIBarButtonItem(
barButtonSystemItem: .done,
target: self,
action: #selector(onDone)
)
navigationItem.leftBarButtonItem = UIBarButtonItem(
title: "Dismiss",
style: .plain,
target: self,
action: #selector(onDismiss)
)
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
textView.frame = view.bounds
}
@objc func onDone() {
dismiss(animated: true)
}
@objc func onDismiss() {
textView.resignFirstResponder()
}
}
+24 -4
View File
@@ -9,10 +9,11 @@
import UIKit
import ContextMenu
class ViewController: UIViewController {
class ViewController: UIViewController, ContextMenuDelegate {
@IBOutlet weak var button: UIButton!
@IBOutlet weak var keyboardButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
button.addGestureRecognizer(UIPanGestureRecognizer(target: self, action: #selector(onPan(gesture:))))
@@ -27,10 +28,29 @@ class ViewController: UIViewController {
ContextMenu.shared.show(
sourceViewController: self,
viewController: MenuViewController(),
options: ContextMenu.Options(containerStyle: ContextMenu.ContainerStyle(backgroundColor: UIColor(red: 41/255.0, green: 45/255.0, blue: 53/255.0, alpha: 1)), menuStyle: .minimal),
sourceView: button
options: ContextMenu.Options(containerStyle: ContextMenu.ContainerStyle(backgroundColor: UIColor(red: 41/255.0, green: 45/255.0, blue: 53/255.0, alpha: 1)), menuStyle: .default, hapticsStyle: .medium),
sourceView: button,
delegate: self
)
}
@IBAction func onKeyboardButton(_ sender: Any) {
ContextMenu.shared.show(
sourceViewController: self,
viewController: KeyboardMenuViewController(),
options: ContextMenu.Options(menuStyle: .default, hapticsStyle: .medium)
)
}
//MARK: ContextMenuDelegate
func contextMenuWillDismiss(viewController: UIViewController, animated: Bool) {
print("will dismiss")
}
func contextMenuDidDismiss(viewController: UIViewController, animated: Bool) {
print("did dismiss")
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ../ContextMenu.podspec
SPEC CHECKSUMS:
ContextMenu: f542992e2dd56e8a116a59a2ab5a215637982744
ContextMenu: 1517412586bc77274020b56b2fd2fd64c0b743e7
PODFILE CHECKSUM: aa060c7f3a10a9cb8b2633f1297c22bb65e4f54d
+1 -1
View File
@@ -11,7 +11,7 @@
"summary": "Context menu inspired by Things 3.",
"source": {
"git": "https://github.com/GitHawkApp/ContextMenu.git",
"tag": "#{s.version}"
"tag": "0.1.0"
},
"source_files": "ContextMenu/*.swift",
"platforms": {
+1 -1
View File
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ../ContextMenu.podspec
SPEC CHECKSUMS:
ContextMenu: f542992e2dd56e8a116a59a2ab5a215637982744
ContextMenu: 1517412586bc77274020b56b2fd2fd64c0b743e7
PODFILE CHECKSUM: aa060c7f3a10a9cb8b2633f1297c22bb65e4f54d
+145 -137
View File
@@ -7,26 +7,28 @@
objects = {
/* Begin PBXBuildFile section */
29004463EA77E281BC76D155ADB9020F /* ContextMenuPresenting.swift in Sources */ = {isa = PBXBuildFile; fileRef = 248C9B4FF0D3F81A06280C402C567D88 /* ContextMenuPresenting.swift */; };
31B67E27C8932833B5F23A70D2A1A18F /* ContextMenu+ContextMenuPresentationControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E9625EE0940E5B6D28DE87B9A9AA394 /* ContextMenu+ContextMenuPresentationControllerDelegate.swift */; };
035CEF32DA4C5D1DCA33C614CEB17913 /* ContextMenu-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 6DD3DF68FA265165A9C960C87FA9B555 /* ContextMenu-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
03C7D3FAC04C2CC8CFC5D8B8B5662F99 /* ContextMenu+MenuStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9EACC934B425B94E0AC66C11F914C5B /* ContextMenu+MenuStyle.swift */; };
20D5042ECFA20AA664AAE1E20D77806E /* ContextMenuDismissing.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80691B6A70DF37D3B71B5BE2CBD7887B /* ContextMenuDismissing.swift */; };
2E74EA4FD27725BA605672D98EF5775A /* ContextMenuPresenting.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7384709B9EFCE2A4C4DA7AD397D8C92 /* ContextMenuPresenting.swift */; };
3293BFE2E95182659C0545055872E33A /* SourceViewCorner.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5B25A99DEC14DE8ED73B2253DA28C61 /* SourceViewCorner.swift */; };
32BD703743B0B8B75A5832596BBDD912 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; };
3363E5B3A2FD80DD2F523DEA110AD23D /* ClippedContainerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A3903BCCBC56DE7698C23F1B9D7025 /* ClippedContainerViewController.swift */; };
34611D820062FF0D2537BA5BB77FC49F /* ContextMenu-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B1B000328F90D8A5D58AF2823DE7572A /* ContextMenu-dummy.m */; };
34DE824BF8077EF1C9325550AC2F1367 /* ContextMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DEB16962167FB991B230C703581DEB6 /* ContextMenu.swift */; };
40F454BB711499A3B137B3CD6180DCD4 /* Pods-Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */; };
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 */; };
457F0B73107CD96C71CAE03029AA8BDC /* CGRect+Area.swift in Sources */ = {isa = PBXBuildFile; fileRef = A4C37E5160ADE6D8A8F853EA04A37F16 /* CGRect+Area.swift */; };
5D1AF63F82B9CC3377710DC84424F6C5 /* ContextMenu+ContextMenuPresentationControllerDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C38465B7FAD1178F371BB945E9F0CABD /* ContextMenu+ContextMenuPresentationControllerDelegate.swift */; };
67051657982C7F45AA72807C10028E40 /* ContextMenuPresentationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B61C48FECAA4B036403FFB37558F775D /* ContextMenuPresentationController.swift */; };
71B3B8136D9A8DACBBD76C3B1272FE02 /* Pods-Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };
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 */; };
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, ); }; };
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 */; };
770FCA2E81351AFFDBBB678E9676AE06 /* ContextMenuDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E740D7A9F7277862B645221D4138C3C3 /* ContextMenuDelegate.swift */; };
C0026F3B533B8B9D029136A90B8FF394 /* UIViewController+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6C9E30931E91AAE1145FC7B7CFF5698 /* UIViewController+Extensions.swift */; };
CCEA546C378D7EBCE8DC42F49AC65F01 /* ClippedContainerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDDD0FF66B18CA43F3B6D561A5940E28 /* ClippedContainerViewController.swift */; };
D307CADFFC08A750DF71A1A103EE73CD /* ContextMenu+Options.swift in Sources */ = {isa = PBXBuildFile; fileRef = 67B629876410BD4AFE53A6624B62F35F /* ContextMenu+Options.swift */; };
E80E6DDC9FE58EC3B7EC11100268EA08 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; };
EC1E21465F6207B9A7B30612B2B2B01B /* ContextMenu+Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = 87D2FD21EA79679A168A5A8C6C819F8D /* ContextMenu+Item.swift */; };
F2C6E55A1C6351BFF3B0CA6567DBF022 /* ContextMenu+ContainerStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13CC10DCC8B20BE7FA1E83DF91AC1128 /* ContextMenu+ContainerStyle.swift */; };
F4DC47169A4414AEA6C20C8957416137 /* ContextMenu+Animations.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7DB3263FFBBDB53AAAD64847C8A05AD5 /* ContextMenu+Animations.swift */; };
FF75C687ABC833C17BE2CB3DF8B08820 /* ContextMenu+UIViewControllerTransitioningDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 857A884CBACB5A263D36125D985A6C4A /* ContextMenu+UIViewControllerTransitioningDelegate.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@@ -34,57 +36,59 @@
isa = PBXContainerItemProxy;
containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */;
proxyType = 1;
remoteGlobalIDString = 94E34967574FD8A9203CFB4086EA7849;
remoteGlobalIDString = C55C8E1E0367C61543FC7906E3E7159F;
remoteInfo = ContextMenu;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
044AA3E23F71470C9B5F50D44720EA0D /* Pods-Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Example-resources.sh"; sourceTree = "<group>"; };
083F96FBD20FBEB55E326904926AB872 /* ContextMenu.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContextMenu.swift; path = ContextMenu/ContextMenu.swift; sourceTree = "<group>"; };
11434BC759D12F57876FBB74A4775E74 /* Pods-Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Example-acknowledgements.plist"; sourceTree = "<group>"; };
13CC10DCC8B20BE7FA1E83DF91AC1128 /* ContextMenu+ContainerStyle.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+ContainerStyle.swift"; path = "ContextMenu/ContextMenu+ContainerStyle.swift"; sourceTree = "<group>"; };
14925AF7A0EBA4F460F20E4A272FD5C2 /* ContextMenu.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ContextMenu.xcconfig; sourceTree = "<group>"; };
15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Example-umbrella.h"; sourceTree = "<group>"; };
15DBAFC09AB1344CE2E45DEE323F5406 /* ContextMenu+UIViewControllerTransitioningDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+UIViewControllerTransitioningDelegate.swift"; path = "ContextMenu/ContextMenu+UIViewControllerTransitioningDelegate.swift"; sourceTree = "<group>"; };
1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Example-dummy.m"; sourceTree = "<group>"; };
248C9B4FF0D3F81A06280C402C567D88 /* ContextMenuPresenting.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContextMenuPresenting.swift; path = ContextMenu/ContextMenuPresenting.swift; sourceTree = "<group>"; };
1DEB16962167FB991B230C703581DEB6 /* ContextMenu.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContextMenu.swift; path = ContextMenu/ContextMenu.swift; sourceTree = "<group>"; };
25A37D4D536CC5988A439441117C41F4 /* Pods-Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Example.modulemap"; sourceTree = "<group>"; };
2E9625EE0940E5B6D28DE87B9A9AA394 /* ContextMenu+ContextMenuPresentationControllerDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+ContextMenuPresentationControllerDelegate.swift"; path = "ContextMenu/ContextMenu+ContextMenuPresentationControllerDelegate.swift"; sourceTree = "<group>"; };
333B6A8DDD5E59721593B55968D63FAB /* SourceViewCorner.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SourceViewCorner.swift; path = ContextMenu/SourceViewCorner.swift; sourceTree = "<group>"; };
35ADB0AAAFD77E7FAB3E79DAFD7738CE /* ContextMenu-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ContextMenu-prefix.pch"; sourceTree = "<group>"; };
3ADE9E5655579DB0F79DC9C80758673C /* Pods-Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Example-acknowledgements.markdown"; sourceTree = "<group>"; };
3F3EFEBDE6702DEFDFFF9D5C6DBC3773 /* Pods-Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Example-frameworks.sh"; sourceTree = "<group>"; };
4372D257F4D95B7947C8B75C44589837 /* ContextMenuPresentationController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContextMenuPresentationController.swift; path = ContextMenu/ContextMenuPresentationController.swift; sourceTree = "<group>"; };
4458DFE4EB0642A02F5AFCD928B409F7 /* ContextMenuDismissing.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContextMenuDismissing.swift; path = ContextMenu/ContextMenuDismissing.swift; sourceTree = "<group>"; };
474D16CA3C348A373EFF57AD26B722F2 /* ContextMenu+Options.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+Options.swift"; path = "ContextMenu/ContextMenu+Options.swift"; sourceTree = "<group>"; };
4AA4306EDD56FD63FFE70487653C25C7 /* ContextMenu.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; path = ContextMenu.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
5A5ED5343F3693436571E370FA1D9B25 /* ContextMenu.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ContextMenu.xcconfig; sourceTree = "<group>"; };
51F664DAF164C2E3AE93FE182F8CC26B /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5B81C04F8E84EAE60AE15C8695031A5F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
62168363D7BF0CE18A35DC197FA28EE2 /* ContextMenu+MenuStyle.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+MenuStyle.swift"; path = "ContextMenu/ContextMenu+MenuStyle.swift"; sourceTree = "<group>"; };
6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
6F09346CD57031C9F4615B373489CCB0 /* ContextMenu+ContainerStyle.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+ContainerStyle.swift"; path = "ContextMenu/ContextMenu+ContainerStyle.swift"; sourceTree = "<group>"; };
71DDD555C4F32B86F69F2CCE692E87C1 /* ContextMenu+Item.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+Item.swift"; path = "ContextMenu/ContextMenu+Item.swift"; sourceTree = "<group>"; };
7F35176CEE9BAAD80281A0DF595B0D25 /* ContextMenu-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ContextMenu-dummy.m"; sourceTree = "<group>"; };
6795B06F2AD013A2429B82746F52BE00 /* ContextMenu.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = ContextMenu.modulemap; sourceTree = "<group>"; };
67B629876410BD4AFE53A6624B62F35F /* ContextMenu+Options.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+Options.swift"; path = "ContextMenu/ContextMenu+Options.swift"; sourceTree = "<group>"; };
6DD3DF68FA265165A9C960C87FA9B555 /* ContextMenu-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ContextMenu-umbrella.h"; sourceTree = "<group>"; };
7DB3263FFBBDB53AAAD64847C8A05AD5 /* ContextMenu+Animations.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+Animations.swift"; path = "ContextMenu/ContextMenu+Animations.swift"; sourceTree = "<group>"; };
80691B6A70DF37D3B71B5BE2CBD7887B /* ContextMenuDismissing.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContextMenuDismissing.swift; path = ContextMenu/ContextMenuDismissing.swift; sourceTree = "<group>"; };
857A884CBACB5A263D36125D985A6C4A /* ContextMenu+UIViewControllerTransitioningDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+UIViewControllerTransitioningDelegate.swift"; path = "ContextMenu/ContextMenu+UIViewControllerTransitioningDelegate.swift"; sourceTree = "<group>"; };
87D2FD21EA79679A168A5A8C6C819F8D /* ContextMenu+Item.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+Item.swift"; path = "ContextMenu/ContextMenu+Item.swift"; sourceTree = "<group>"; };
8CA4BC8B1FC7FBDA052E28D7230EEC13 /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_Example.framework; path = "Pods-Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; };
93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
A4C37E5160ADE6D8A8F853EA04A37F16 /* CGRect+Area.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "CGRect+Area.swift"; path = "ContextMenu/CGRect+Area.swift"; sourceTree = "<group>"; };
A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Example.release.xcconfig"; sourceTree = "<group>"; };
A99C513A5107C353567935F9D81AA652 /* ContextMenu+Animations.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+Animations.swift"; path = "ContextMenu/ContextMenu+Animations.swift"; sourceTree = "<group>"; };
BA36393F87FB036B5B9B0106BEC81095 /* ContextMenu-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ContextMenu-prefix.pch"; sourceTree = "<group>"; };
C3EAB79C04F9B0D923F8793CFDA2DD07 /* ContextMenu-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ContextMenu-umbrella.h"; sourceTree = "<group>"; };
B1B000328F90D8A5D58AF2823DE7572A /* ContextMenu-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ContextMenu-dummy.m"; sourceTree = "<group>"; };
B3DEBB6D813BE0BF85C08B55C9A26FA7 /* ContextMenu.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; path = ContextMenu.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
B61C48FECAA4B036403FFB37558F775D /* ContextMenuPresentationController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContextMenuPresentationController.swift; path = ContextMenu/ContextMenuPresentationController.swift; sourceTree = "<group>"; };
B9EACC934B425B94E0AC66C11F914C5B /* ContextMenu+MenuStyle.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+MenuStyle.swift"; path = "ContextMenu/ContextMenu+MenuStyle.swift"; sourceTree = "<group>"; };
BE6001925052E73D97C96A90A46182A6 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = "<group>"; };
BEBD79F00086360DD53480C2D3806E79 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = "<group>"; };
C38465B7FAD1178F371BB945E9F0CABD /* ContextMenu+ContextMenuPresentationControllerDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "ContextMenu+ContextMenuPresentationControllerDelegate.swift"; path = "ContextMenu/ContextMenu+ContextMenuPresentationControllerDelegate.swift"; sourceTree = "<group>"; };
C5B25A99DEC14DE8ED73B2253DA28C61 /* SourceViewCorner.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SourceViewCorner.swift; path = ContextMenu/SourceViewCorner.swift; sourceTree = "<group>"; };
C6C9E30931E91AAE1145FC7B7CFF5698 /* UIViewController+Extensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "UIViewController+Extensions.swift"; path = "ContextMenu/UIViewController+Extensions.swift"; sourceTree = "<group>"; };
C7384709B9EFCE2A4C4DA7AD397D8C92 /* ContextMenuPresenting.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContextMenuPresenting.swift; path = ContextMenu/ContextMenuPresenting.swift; sourceTree = "<group>"; };
C9792695121A60254E7D649C440E8697 /* ContextMenu.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = ContextMenu.framework; path = ContextMenu.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D177D476D63313B2ADC339EC0713F6D5 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = "<group>"; };
D1B6FD6EAA05656387548B6C68F1CB27 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E7A3903BCCBC56DE7698C23F1B9D7025 /* ClippedContainerViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ClippedContainerViewController.swift; path = ContextMenu/ClippedContainerViewController.swift; sourceTree = "<group>"; };
E9E5199A0158EA7B553B582999281E75 /* CGRect+Area.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "CGRect+Area.swift"; path = "ContextMenu/CGRect+Area.swift"; sourceTree = "<group>"; };
EE1CBCB45C857CA71181AC45E10D9857 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = "<group>"; };
CDDD0FF66B18CA43F3B6D561A5940E28 /* ClippedContainerViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ClippedContainerViewController.swift; path = ContextMenu/ClippedContainerViewController.swift; sourceTree = "<group>"; };
E740D7A9F7277862B645221D4138C3C3 /* ContextMenuDelegate.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ContextMenuDelegate.swift; path = ContextMenu/ContextMenuDelegate.swift; sourceTree = "<group>"; };
EFC5B2E05B58CD826FD55659BF1D7E39 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Example.debug.xcconfig"; sourceTree = "<group>"; };
F3AC6FE060B4AE166C90F65E0E2BD194 /* ContextMenu.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = ContextMenu.modulemap; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
11A115FAF4DA547D1E09F39B8EBE85F1 /* Frameworks */ = {
79521CC87D71A13DEC31294CFEFD6329 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
B249B66E738181ADC06D5F535E15ACB4 /* Foundation.framework in Frameworks */,
E80E6DDC9FE58EC3B7EC11100268EA08 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -99,6 +103,14 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
0580ACC4C122152002FF1B8CF0368921 /* Development Pods */ = {
isa = PBXGroup;
children = (
8794F8B0DC587EEED3B13E72472956CC /* ContextMenu */,
);
name = "Development Pods";
sourceTree = "<group>";
};
1B5ECB992A56AE0C70DC72D88BB90B05 /* Pods-Example */ = {
isa = PBXGroup;
children = (
@@ -117,28 +129,6 @@
path = "Target Support Files/Pods-Example";
sourceTree = "<group>";
};
20940AA8C4D3863E207848977EBEF11C /* Support Files */ = {
isa = PBXGroup;
children = (
F3AC6FE060B4AE166C90F65E0E2BD194 /* ContextMenu.modulemap */,
5A5ED5343F3693436571E370FA1D9B25 /* ContextMenu.xcconfig */,
7F35176CEE9BAAD80281A0DF595B0D25 /* ContextMenu-dummy.m */,
BA36393F87FB036B5B9B0106BEC81095 /* ContextMenu-prefix.pch */,
C3EAB79C04F9B0D923F8793CFDA2DD07 /* ContextMenu-umbrella.h */,
D1B6FD6EAA05656387548B6C68F1CB27 /* Info.plist */,
);
name = "Support Files";
path = "Example/Pods/Target Support Files/ContextMenu";
sourceTree = "<group>";
};
3F0A5F1EF3DA411863AE72B94A1D0EA6 /* Development Pods */ = {
isa = PBXGroup;
children = (
B3C1B7C3B8F55E46C293A5ACA2938450 /* ContextMenu */,
);
name = "Development Pods";
sourceTree = "<group>";
};
6A4F6A14E3FB951290E4531728B7A461 /* Targets Support Files */ = {
isa = PBXGroup;
children = (
@@ -151,32 +141,34 @@
isa = PBXGroup;
children = (
93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */,
3F0A5F1EF3DA411863AE72B94A1D0EA6 /* Development Pods */,
0580ACC4C122152002FF1B8CF0368921 /* Development Pods */,
BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */,
C65033CE272052BFBDCB15610D69AE2B /* Products */,
6A4F6A14E3FB951290E4531728B7A461 /* Targets Support Files */,
);
sourceTree = "<group>";
};
B3C1B7C3B8F55E46C293A5ACA2938450 /* ContextMenu */ = {
8794F8B0DC587EEED3B13E72472956CC /* ContextMenu */ = {
isa = PBXGroup;
children = (
E9E5199A0158EA7B553B582999281E75 /* CGRect+Area.swift */,
E7A3903BCCBC56DE7698C23F1B9D7025 /* ClippedContainerViewController.swift */,
083F96FBD20FBEB55E326904926AB872 /* ContextMenu.swift */,
A99C513A5107C353567935F9D81AA652 /* ContextMenu+Animations.swift */,
6F09346CD57031C9F4615B373489CCB0 /* ContextMenu+ContainerStyle.swift */,
2E9625EE0940E5B6D28DE87B9A9AA394 /* ContextMenu+ContextMenuPresentationControllerDelegate.swift */,
71DDD555C4F32B86F69F2CCE692E87C1 /* ContextMenu+Item.swift */,
62168363D7BF0CE18A35DC197FA28EE2 /* ContextMenu+MenuStyle.swift */,
474D16CA3C348A373EFF57AD26B722F2 /* ContextMenu+Options.swift */,
15DBAFC09AB1344CE2E45DEE323F5406 /* ContextMenu+UIViewControllerTransitioningDelegate.swift */,
4458DFE4EB0642A02F5AFCD928B409F7 /* ContextMenuDismissing.swift */,
4372D257F4D95B7947C8B75C44589837 /* ContextMenuPresentationController.swift */,
248C9B4FF0D3F81A06280C402C567D88 /* ContextMenuPresenting.swift */,
333B6A8DDD5E59721593B55968D63FAB /* SourceViewCorner.swift */,
DE363DB3821939CF89BB2CC8B8B39B2B /* Pod */,
20940AA8C4D3863E207848977EBEF11C /* Support Files */,
A4C37E5160ADE6D8A8F853EA04A37F16 /* CGRect+Area.swift */,
CDDD0FF66B18CA43F3B6D561A5940E28 /* ClippedContainerViewController.swift */,
1DEB16962167FB991B230C703581DEB6 /* ContextMenu.swift */,
7DB3263FFBBDB53AAAD64847C8A05AD5 /* ContextMenu+Animations.swift */,
13CC10DCC8B20BE7FA1E83DF91AC1128 /* ContextMenu+ContainerStyle.swift */,
C38465B7FAD1178F371BB945E9F0CABD /* ContextMenu+ContextMenuPresentationControllerDelegate.swift */,
87D2FD21EA79679A168A5A8C6C819F8D /* ContextMenu+Item.swift */,
B9EACC934B425B94E0AC66C11F914C5B /* ContextMenu+MenuStyle.swift */,
67B629876410BD4AFE53A6624B62F35F /* ContextMenu+Options.swift */,
857A884CBACB5A263D36125D985A6C4A /* ContextMenu+UIViewControllerTransitioningDelegate.swift */,
E740D7A9F7277862B645221D4138C3C3 /* ContextMenuDelegate.swift */,
80691B6A70DF37D3B71B5BE2CBD7887B /* ContextMenuDismissing.swift */,
B61C48FECAA4B036403FFB37558F775D /* ContextMenuPresentationController.swift */,
C7384709B9EFCE2A4C4DA7AD397D8C92 /* ContextMenuPresenting.swift */,
C5B25A99DEC14DE8ED73B2253DA28C61 /* SourceViewCorner.swift */,
C6C9E30931E91AAE1145FC7B7CFF5698 /* UIViewController+Extensions.swift */,
C3B321D0DFE0341E590AA911826E73DB /* Pod */,
E3A5658B6566DE9707FF8C366C6CBCAA /* Support Files */,
);
name = ContextMenu;
path = ../..;
@@ -190,6 +182,16 @@
name = Frameworks;
sourceTree = "<group>";
};
C3B321D0DFE0341E590AA911826E73DB /* Pod */ = {
isa = PBXGroup;
children = (
B3DEBB6D813BE0BF85C08B55C9A26FA7 /* ContextMenu.podspec */,
BEBD79F00086360DD53480C2D3806E79 /* LICENSE */,
BE6001925052E73D97C96A90A46182A6 /* README.md */,
);
name = Pod;
sourceTree = "<group>";
};
C65033CE272052BFBDCB15610D69AE2B /* Products */ = {
isa = PBXGroup;
children = (
@@ -207,14 +209,18 @@
name = iOS;
sourceTree = "<group>";
};
DE363DB3821939CF89BB2CC8B8B39B2B /* Pod */ = {
E3A5658B6566DE9707FF8C366C6CBCAA /* Support Files */ = {
isa = PBXGroup;
children = (
4AA4306EDD56FD63FFE70487653C25C7 /* ContextMenu.podspec */,
EE1CBCB45C857CA71181AC45E10D9857 /* LICENSE */,
D177D476D63313B2ADC339EC0713F6D5 /* README.md */,
6795B06F2AD013A2429B82746F52BE00 /* ContextMenu.modulemap */,
14925AF7A0EBA4F460F20E4A272FD5C2 /* ContextMenu.xcconfig */,
B1B000328F90D8A5D58AF2823DE7572A /* ContextMenu-dummy.m */,
35ADB0AAAFD77E7FAB3E79DAFD7738CE /* ContextMenu-prefix.pch */,
6DD3DF68FA265165A9C960C87FA9B555 /* ContextMenu-umbrella.h */,
51F664DAF164C2E3AE93FE182F8CC26B /* Info.plist */,
);
name = Pod;
name = "Support Files";
path = "Example/Pods/Target Support Files/ContextMenu";
sourceTree = "<group>";
};
/* End PBXGroup section */
@@ -228,11 +234,11 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
AF762F200BA5827FC8DC4B06A78DC0F9 /* Headers */ = {
F56AFF13660BC34583736A3A88E204DA /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
C688343B3B6107C07545D1AB5A931DF3 /* ContextMenu-umbrella.h in Headers */,
035CEF32DA4C5D1DCA33C614CEB17913 /* ContextMenu-umbrella.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -257,13 +263,13 @@
productReference = 8CA4BC8B1FC7FBDA052E28D7230EEC13 /* Pods_Example.framework */;
productType = "com.apple.product-type.framework";
};
94E34967574FD8A9203CFB4086EA7849 /* ContextMenu */ = {
C55C8E1E0367C61543FC7906E3E7159F /* ContextMenu */ = {
isa = PBXNativeTarget;
buildConfigurationList = 11FA8D253AF9022C08CF03380C0FABE1 /* Build configuration list for PBXNativeTarget "ContextMenu" */;
buildConfigurationList = A502D45AB4BE663E42A273A54BDA227D /* Build configuration list for PBXNativeTarget "ContextMenu" */;
buildPhases = (
25FAA96C2EC5D6480E5D9FFD213E689E /* Sources */,
11A115FAF4DA547D1E09F39B8EBE85F1 /* Frameworks */,
AF762F200BA5827FC8DC4B06A78DC0F9 /* Headers */,
99E97415B516C809544EDF048D102187 /* Sources */,
79521CC87D71A13DEC31294CFEFD6329 /* Frameworks */,
F56AFF13660BC34583736A3A88E204DA /* Headers */,
);
buildRules = (
);
@@ -295,35 +301,13 @@
projectDirPath = "";
projectRoot = "";
targets = (
94E34967574FD8A9203CFB4086EA7849 /* ContextMenu */,
C55C8E1E0367C61543FC7906E3E7159F /* ContextMenu */,
4FFAA6E4EBC948A31BAEED42653BB8D7 /* Pods-Example */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
25FAA96C2EC5D6480E5D9FFD213E689E /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
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;
};
84E87A2BE9D1D93F66EBFD49006C04D4 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
@@ -332,13 +316,37 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
99E97415B516C809544EDF048D102187 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
457F0B73107CD96C71CAE03029AA8BDC /* CGRect+Area.swift in Sources */,
CCEA546C378D7EBCE8DC42F49AC65F01 /* ClippedContainerViewController.swift in Sources */,
F4DC47169A4414AEA6C20C8957416137 /* ContextMenu+Animations.swift in Sources */,
F2C6E55A1C6351BFF3B0CA6567DBF022 /* ContextMenu+ContainerStyle.swift in Sources */,
5D1AF63F82B9CC3377710DC84424F6C5 /* ContextMenu+ContextMenuPresentationControllerDelegate.swift in Sources */,
EC1E21465F6207B9A7B30612B2B2B01B /* ContextMenu+Item.swift in Sources */,
03C7D3FAC04C2CC8CFC5D8B8B5662F99 /* ContextMenu+MenuStyle.swift in Sources */,
D307CADFFC08A750DF71A1A103EE73CD /* ContextMenu+Options.swift in Sources */,
FF75C687ABC833C17BE2CB3DF8B08820 /* ContextMenu+UIViewControllerTransitioningDelegate.swift in Sources */,
34611D820062FF0D2537BA5BB77FC49F /* ContextMenu-dummy.m in Sources */,
34DE824BF8077EF1C9325550AC2F1367 /* ContextMenu.swift in Sources */,
770FCA2E81351AFFDBBB678E9676AE06 /* ContextMenuDelegate.swift in Sources */,
20D5042ECFA20AA664AAE1E20D77806E /* ContextMenuDismissing.swift in Sources */,
67051657982C7F45AA72807C10028E40 /* ContextMenuPresentationController.swift in Sources */,
2E74EA4FD27725BA605672D98EF5775A /* ContextMenuPresenting.swift in Sources */,
3293BFE2E95182659C0545055872E33A /* SourceViewCorner.swift in Sources */,
C0026F3B533B8B9D029136A90B8FF394 /* UIViewController+Extensions.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
B0033F7548FA4B72E658467AF36BE6F9 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = ContextMenu;
target = 94E34967574FD8A9203CFB4086EA7849 /* ContextMenu */;
target = C55C8E1E0367C61543FC7906E3E7159F /* ContextMenu */;
targetProxy = 1BF88884B950C5385334221468581CB7 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
@@ -442,9 +450,9 @@
};
name = Debug;
};
8042280493369F6D934721FDD6DBF7D4 /* Release */ = {
C5E79A630E68B9AF674783B98910A511 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 5A5ED5343F3693436571E370FA1D9B25 /* ContextMenu.xcconfig */;
baseConfigurationReference = 14925AF7A0EBA4F460F20E4A272FD5C2 /* ContextMenu.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "";
@@ -466,14 +474,13 @@
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) ";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
name = Debug;
};
C72736E31C25E34B154DFAA69EFB6E7F /* Release */ = {
isa = XCBuildConfiguration;
@@ -568,9 +575,9 @@
};
name = Release;
};
D70C72D4BCD06ED83B9D9D35B9EC3B52 /* Debug */ = {
EE8C5E992045DE682EB6C22D3B679DAE /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 5A5ED5343F3693436571E370FA1D9B25 /* ContextMenu.xcconfig */;
baseConfigurationReference = 14925AF7A0EBA4F460F20E4A272FD5C2 /* ContextMenu.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "";
@@ -592,26 +599,18 @@
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) ";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
11FA8D253AF9022C08CF03380C0FABE1 /* Build configuration list for PBXNativeTarget "ContextMenu" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D70C72D4BCD06ED83B9D9D35B9EC3B52 /* Debug */,
8042280493369F6D934721FDD6DBF7D4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = {
isa = XCConfigurationList;
buildConfigurations = (
@@ -621,6 +620,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A502D45AB4BE663E42A273A54BDA227D /* Build configuration list for PBXNativeTarget "ContextMenu" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C5E79A630E68B9AF674783B98910A511 /* Debug */,
EE8C5E992045DE682EB6C22D3B679DAE /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
D3CB2AA0C5C3FD87BE88AEE41588DA13 /* Build configuration list for PBXNativeTarget "Pods-Example" */ = {
isa = XCConfigurationList;
buildConfigurations = (