Skip to content

Commit

Permalink
Resolve build error with access modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Miller committed Feb 9, 2018
1 parent d3f8fdc commit 2c85b86
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<img src="https://img.shields.io/badge/swift-3.0-orange.svg?style=flat.svg" alt="Swift version: 3.0">
</a>
<a href="https://cocoapods.org/pods/InteractiveSideMenu">
<img src="https://img.shields.io/badge/CocoaPods-2.1-green.svg" alt="CocoaPods: 2.1">
<img src="https://img.shields.io/badge/CocoaPods-2.2.1-green.svg" alt="CocoaPods: 2.1">
</a>
<a href="https://github.com/Carthage/Carthage">
<img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible">
Expand Down
2 changes: 1 addition & 1 deletion Sources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>2.2.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
18 changes: 6 additions & 12 deletions Sources/SideMenuItemShadow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,15 @@ import Foundation
*/
public struct SideMenuItemShadow {

struct Defaults {
static var defaultColor: UIColor = UIColor.black
static var defaultOpacity: CGFloat = 0.3
static var defaultSize: CGSize = CGSize(width: -5, height: 5)
}

public var color: UIColor? = Defaults.defaultColor
public var opacity: CGFloat = Defaults.defaultOpacity
public var offset: CGSize = Defaults.defaultSize
public var color: UIColor? = UIColor.black
public var opacity: CGFloat = 0.3
public var offset: CGSize = CGSize(width: -5, height: 5)

public init() { }

public init(color: UIColor? = Defaults.defaultColor,
opacity: CGFloat = Defaults.defaultOpacity,
offset: CGSize = Defaults.defaultSize) {
public init(color: UIColor? = UIColor.black,
opacity: CGFloat = 0.3,
offset: CGSize = CGSize(width: -5, height: 5)) {
self.color = color
self.opacity = opacity
self.offset = offset
Expand Down

0 comments on commit 2c85b86

Please sign in to comment.