Skip to content

Commit

Permalink
Fixed protect level bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Aug 16, 2021
1 parent 49aaa55 commit 43a7cb5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class SPLarkSettingsCollectionViewCell: UICollectionViewCell {
let titleLabel = UILabel()
let subtitleLabel = UILabel()

override var isHighlighted: Bool{
public override var isHighlighted: Bool{
didSet {
if isHighlighted {
UIView.animate(withDuration: 0.27, delay: 0.0, usingSpringWithDamping: 1, initialSpringVelocity: 1.0, options: [.curveEaseOut, .beginFromCurrentState], animations: {
Expand Down Expand Up @@ -75,14 +75,14 @@ public class SPLarkSettingsCollectionViewCell: UICollectionViewCell {
self.backgroundColor = color
}

override func prepareForReuse() {
public override func prepareForReuse() {
super.prepareForReuse()
self.titleLabel.text = "Title"
self.subtitleLabel.text = "Subtitle"
self.layoutSubviews()
}

override func layoutSubviews() {
public override func layoutSubviews() {
super.layoutSubviews()

if self.isHighlighted {
Expand Down
2 changes: 1 addition & 1 deletion SPLarkController.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "SPLarkController"
s.version = "1.2.0"
s.version = "1.2.1"
s.summary = "Make settings screen for application. Can add buttons and switches. Easy customisation."
s.homepage = "https://github.com/ivanvorobei/SPLarkController"
s.source = { :git => "https://github.com/ivanvorobei/SPLarkController.git", :tag => s.version }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class SPLarkSettingsCollectionViewCell: UICollectionViewCell {
let titleLabel = UILabel()
let subtitleLabel = UILabel()

override var isHighlighted: Bool{
public override var isHighlighted: Bool{
didSet {
if isHighlighted {
UIView.animate(withDuration: 0.27, delay: 0.0, usingSpringWithDamping: 1, initialSpringVelocity: 1.0, options: [.curveEaseOut, .beginFromCurrentState], animations: {
Expand Down Expand Up @@ -75,14 +75,14 @@ public class SPLarkSettingsCollectionViewCell: UICollectionViewCell {
self.backgroundColor = color
}

override func prepareForReuse() {
public override func prepareForReuse() {
super.prepareForReuse()
self.titleLabel.text = "Title"
self.subtitleLabel.text = "Subtitle"
self.layoutSubviews()
}

override func layoutSubviews() {
public override func layoutSubviews() {
super.layoutSubviews()

if self.isHighlighted {
Expand Down

0 comments on commit 43a7cb5

Please sign in to comment.