Skip to content
Merged
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
2 changes: 1 addition & 1 deletion InteractiveSideMenu.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "InteractiveSideMenu"
s.version = "2.2"
s.version = "2.2.1"
s.summary = "Interactive Side Menu in Swift"
s.homepage = "https://github.com/handsomecode/InteractiveSideMenu"
s.license = "Apache 2.0 license"
Expand Down
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