Skip to content

Commit

Permalink
Merge branch 'Swift4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
BergerBytes committed Dec 11, 2018
2 parents 5033fe2 + 9021876 commit 5db1976
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
9 changes: 2 additions & 7 deletions BBSlideoutMenu.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ Pod::Spec.new do |s|
s.platform = :ios, '9.0'
s.requires_arc = true
s.source_files = 'Pod/Classes/'
s.resource_bundles = {
'BBSlideoutMenu' => ['Pod/Assets/*.png']
}
s.swift_version = '4.2'

# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end
end
6 changes: 4 additions & 2 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

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

8 changes: 4 additions & 4 deletions Pod/Classes/BBSlideoutMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ open class BBSlideoutMenu: UIView {
delay: 0.0,
usingSpringWithDamping: 1,
initialSpringVelocity: 0.0,
options: UIViewAnimationOptions(),
options: UIView.AnimationOptions(),

animations: { () -> Void in
self.keyWindow.layoutIfNeeded()
Expand Down Expand Up @@ -343,11 +343,11 @@ open class BBSlideoutMenu: UIView {
}
}

func tapHandle(_ tap: UITapGestureRecognizer) {
@objc func tapHandle(_ tap: UITapGestureRecognizer) {
dismissSlideMenu(true, time: nil)
}

func panHandle(_ pan: UIPanGestureRecognizer) {
@objc func panHandle(_ pan: UIPanGestureRecognizer) {
if keyWindow == nil {
keyWindow = UIApplication.shared.keyWindow!
}
Expand Down Expand Up @@ -391,7 +391,7 @@ open class BBSlideoutMenu: UIView {
}
}

func edgeHandle(_ edge: UIScreenEdgePanGestureRecognizer) {
@objc func edgeHandle(_ edge: UIScreenEdgePanGestureRecognizer) {
if keyWindow == nil {
keyWindow = UIApplication.shared.keyWindow!
}
Expand Down

0 comments on commit 5db1976

Please sign in to comment.