Skip to content

Commit a7b9027

Browse files
authored
Merge pull request #79 from handsomecode/develop
Resolve build error with access modifiers
2 parents 5fb35e0 + 19ca354 commit a7b9027

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

InteractiveSideMenu.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "InteractiveSideMenu"
3-
s.version = "2.2"
3+
s.version = "2.2.1"
44
s.summary = "Interactive Side Menu in Swift"
55
s.homepage = "https://github.com/handsomecode/InteractiveSideMenu"
66
s.license = "Apache 2.0 license"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<img src="https://img.shields.io/badge/swift-3.0-orange.svg?style=flat.svg" alt="Swift version: 3.0">
99
</a>
1010
<a href="https://cocoapods.org/pods/InteractiveSideMenu">
11-
<img src="https://img.shields.io/badge/CocoaPods-2.1-green.svg" alt="CocoaPods: 2.1">
11+
<img src="https://img.shields.io/badge/CocoaPods-2.2.1-green.svg" alt="CocoaPods: 2.1">
1212
</a>
1313
<a href="https://github.com/Carthage/Carthage">
1414
<img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible">

Sources/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>2.2.1</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

Sources/SideMenuItemShadow.swift

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,15 @@ import Foundation
1313
*/
1414
public struct SideMenuItemShadow {
1515

16-
struct Defaults {
17-
static var defaultColor: UIColor = UIColor.black
18-
static var defaultOpacity: CGFloat = 0.3
19-
static var defaultSize: CGSize = CGSize(width: -5, height: 5)
20-
}
21-
22-
public var color: UIColor? = Defaults.defaultColor
23-
public var opacity: CGFloat = Defaults.defaultOpacity
24-
public var offset: CGSize = Defaults.defaultSize
16+
public var color: UIColor? = UIColor.black
17+
public var opacity: CGFloat = 0.3
18+
public var offset: CGSize = CGSize(width: -5, height: 5)
2519

2620
public init() { }
2721

28-
public init(color: UIColor? = Defaults.defaultColor,
29-
opacity: CGFloat = Defaults.defaultOpacity,
30-
offset: CGSize = Defaults.defaultSize) {
22+
public init(color: UIColor? = UIColor.black,
23+
opacity: CGFloat = 0.3,
24+
offset: CGSize = CGSize(width: -5, height: 5)) {
3125
self.color = color
3226
self.opacity = opacity
3327
self.offset = offset

0 commit comments

Comments
 (0)