Skip to content

Compatible with Swift4 #234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Pod/Classes/SideMenuTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ open class SideMenuTransition: UIPercentDrivenInteractiveTransition {
return viewController
}

internal class func handlePresentMenuLeftScreenEdge(_ edge: UIScreenEdgePanGestureRecognizer) {
@objc internal class func handlePresentMenuLeftScreenEdge(_ edge: UIScreenEdgePanGestureRecognizer) {
SideMenuTransition.presentDirection = .left
handlePresentMenuPan(edge)
}

internal class func handlePresentMenuRightScreenEdge(_ edge: UIScreenEdgePanGestureRecognizer) {
@objc internal class func handlePresentMenuRightScreenEdge(_ edge: UIScreenEdgePanGestureRecognizer) {
SideMenuTransition.presentDirection = .right
handlePresentMenuPan(edge)
}

internal class func handlePresentMenuPan(_ pan: UIPanGestureRecognizer) {
@objc internal class func handlePresentMenuPan(_ pan: UIPanGestureRecognizer) {
if activeGesture == nil {
activeGesture = pan
} else if pan != activeGesture {
Expand Down Expand Up @@ -173,7 +173,7 @@ open class SideMenuTransition: UIPercentDrivenInteractiveTransition {
}
}

internal class func handleHideMenuPan(_ pan: UIPanGestureRecognizer) {
@objc internal class func handleHideMenuPan(_ pan: UIPanGestureRecognizer) {
if activeGesture == nil {
activeGesture = pan
} else if pan != activeGesture {
Expand Down Expand Up @@ -210,7 +210,7 @@ open class SideMenuTransition: UIPercentDrivenInteractiveTransition {
}
}

internal class func handleHideMenuTap(_ tap: UITapGestureRecognizer) {
@objc internal class func handleHideMenuTap(_ tap: UITapGestureRecognizer) {
presentingViewControllerForMenu?.dismiss(animated: true, completion: nil)
}

Expand Down Expand Up @@ -365,7 +365,7 @@ open class SideMenuTransition: UIPercentDrivenInteractiveTransition {
}
}

internal func handleNotification(notification: NSNotification) {
@objc internal func handleNotification(notification: NSNotification) {
guard let mainViewController = SideMenuTransition.presentingViewControllerForMenu,
let menuViewController = SideMenuTransition.viewControllerForMenu,
menuViewController.presentedViewController == nil && menuViewController.presentingViewController != nil else {
Expand Down
6 changes: 3 additions & 3 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- SideMenu (2.0.5)
- SideMenu (2.3.3)

DEPENDENCIES:
- SideMenu (from `.`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "."

SPEC CHECKSUMS:
SideMenu: 0ecfd407b24e7d36c57fc50ca7f5d7cedb7c8841
SideMenu: faf286e394c486ef8c6cf47435a6e2521a9860cf

PODFILE CHECKSUM: 58fed701dc13a7835ed36507e7cf19fa22035003

COCOAPODS: 1.1.1
COCOAPODS: 1.2.1
6 changes: 3 additions & 3 deletions Pods/Local Podspecs/SideMenu.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

432 changes: 236 additions & 196 deletions Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Pods/Target Support Files/SideMenu/Info.plist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Pods/Target Support Files/SideMenu/SideMenu-prefix.pch

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Pods/Target Support Files/SideMenu/SideMenu-umbrella.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Pods/Target Support Files/SideMenu/SideMenu.xcconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions SideMenu.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "SideMenu"
s.version = "2.3.3"
s.version = "2.3.4"
s.summary = "Simple side menu control for iOS in Swift inspired by Facebook. Right and Left sides. No coding required."

# This description is used to generate tags and improve search results.
Expand All @@ -28,7 +28,7 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/jonkykong/SideMenu.git", :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

s.ios.deployment_target = '8.0'
s.ios.deployment_target = '9.0'

s.source_files = 'Pod/Classes/**/*'
# s.resource_bundles = {
Expand Down
Loading