Skip to content
Open
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
15 changes: 13 additions & 2 deletions Sources/FSPagerViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,22 @@ open class FSPagerViewCell: UICollectionViewCell {
return imageView
}

/// Returns the selectionColor which is applied to selectedForegroundView. Default is UIColor(white: 0.2, alpha: 0.2).
@objc
open var selectionColor: UIColor {
set {
_selectionColor = newValue
}
get {
return _selectionColor ?? UIColor(white: 0.2, alpha: 0.2)
}
}

fileprivate weak var _textLabel: UILabel?
fileprivate weak var _imageView: UIImageView?

fileprivate var _selectionColor: UIColor?

fileprivate let kvoContext = UnsafeMutableRawPointer(bitPattern: 0)
fileprivate let selectionColor = UIColor(white: 0.2, alpha: 0.2)

fileprivate weak var _selectedForegroundView: UIView?
fileprivate var selectedForegroundView: UIView? {
Expand Down