Skip to content

Commit

Permalink
Allow change properties in CardView
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhao27 committed Mar 17, 2017
1 parent 672a575 commit c30c0f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions WOWCardStackView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'WOWCardStackView'
s.version = '0.1.1'
s.version = '0.1.2'
s.summary = 'Swapable Card Stack View in Swift 3.0.'

# This description is used to generate tags and improve search results.
Expand All @@ -18,7 +18,7 @@ Pod::Spec.new do |s|
# * Finally, don't worry about the indent, CocoaPods strips it!

s.description = <<-DESC
Swapable Card Stack View in Swift 3.0. It's able to use in Storyboard and similar to UITableView.
Swapable Card Stack View in Swift 3.0. It's able to use in Storyboard and Programatically and it's similar to UITableView.
DESC

s.homepage = 'https://github.com/zhouhao27/WOWCardStackView'
Expand Down
6 changes: 3 additions & 3 deletions WOWCardStackView/Classes/CardView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ open class CardView: UIView {
weak var delegate: CardViewDelegate?

@IBInspectable
var borderColor: UIColor = UIColor.clear {
public var borderColor: UIColor = UIColor.clear {
willSet {
self.layer.borderColor = newValue.cgColor
}
}

@IBInspectable
var borderWidth: CGFloat = 0 {
public var borderWidth: CGFloat = 0 {
willSet {
self.layer.borderWidth = newValue
}
}

@IBInspectable
var isShadowed: Bool = false {
public var isShadowed: Bool = false {
willSet {
if newValue {
self.layer.shadowColor = UIColor.black.cgColor
Expand Down

0 comments on commit c30c0f4

Please sign in to comment.