Skip to content

Commit 35bc87e

Browse files
Vladyslav SemenchenkoVladyslav Semenchenko
authored andcommitted
Disabled Slide Menu Controller checking
Added podspec
1 parent e447f36 commit 35bc87e

File tree

3 files changed

+46
-4
lines changed

3 files changed

+46
-4
lines changed

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.0

CoreExtensions.podspec

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#
2+
# Be sure to run `pod lib lint VSSocialButton.podspec' to ensure this is a
3+
# valid spec before submitting.
4+
#
5+
# Any lines starting with a # are optional, but their use is encouraged
6+
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
7+
#
8+
9+
Pod::Spec.new do |s|
10+
s.name = 'CoreExtensions'
11+
s.version = '1.0'
12+
s.summary = 'CoreExtensions - helpfull extensions to use in each project.'
13+
14+
# This description is used to generate tags and improve search results.
15+
# * Think: What does it do? Why did you write it? What is the focus?
16+
# * Try to keep it short, snappy and to the point.
17+
# * Write the description between the DESC delimiters below.
18+
# * Finally, don't worry about the indent, CocoaPods strips it!
19+
20+
s.description = <<-DESC
21+
Helpfull extensions for arrays, enums, view controllers and more
22+
DESC
23+
24+
s.homepage = 'https://github.com/pffan91/CoreExtensions/'
25+
s.license = { :type => 'MIT', :file => 'LICENSE' }
26+
s.author = { 'Vladyslav Semenchenko' => 'developer.semenchenko@gmail.com' }
27+
s.source = { :git => 'https://github.com/pffan91/CoreExtensions.git', :tag => s.version.to_s }
28+
s.social_media_url = 'https://twitter.com/V_Semenchenko'
29+
30+
s.ios.deployment_target = '10.0'
31+
32+
s.source_files = 'Extensions/**/*'
33+
34+
# s.resource_bundles = {
35+
# 'VSSocialButton' => ['VSSocialButton/Assets/*.png']
36+
# }
37+
38+
# s.public_header_files = 'Pod/Classes/**/*.h'
39+
s.frameworks = 'UIKit'
40+
s.frameworks = 'Foundation'
41+
end

Extensions/UIApplicationExtension.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import UIKit
10-
import SlideMenuControllerSwift
10+
//import SlideMenuControllerSwift
1111

1212
extension UIApplication {
1313

@@ -24,9 +24,9 @@ extension UIApplication {
2424
return topViewController(presented)
2525
}
2626

27-
if let slide = viewController as? SlideMenuController {
28-
return topViewController(slide.mainViewController)
29-
}
27+
// if let slide = viewController as? SlideMenuController {
28+
// return topViewController(slide.mainViewController)
29+
// }
3030
return viewController
3131
}
3232
}

0 commit comments

Comments
 (0)