Skip to content

Commit

Permalink
modify class access control (public -> open)
Browse files Browse the repository at this point in the history
  • Loading branch information
kof.kofktu committed May 17, 2017
1 parent 1611590 commit 37b3d7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Pastel/Classes/PastelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

public class PastelView: UIView {
open class PastelView: UIView {

private struct Animation {
static let keyPath = "colors"
Expand Down Expand Up @@ -74,11 +74,11 @@ public class PastelView: UIView {
super.init(coder: aDecoder)
}

public override func awakeFromNib() {
open override func awakeFromNib() {
super.awakeFromNib()
}

public override func layoutSubviews() {
open override func layoutSubviews() {
super.layoutSubviews()
gradient.frame = bounds
}
Expand Down Expand Up @@ -125,7 +125,7 @@ public class PastelView: UIView {
gradient.add(animation, forKey: Animation.key)
}

public override func removeFromSuperview() {
open override func removeFromSuperview() {
super.removeFromSuperview()
gradient.removeAllAnimations()
gradient.removeFromSuperlayer()
Expand Down

0 comments on commit 37b3d7b

Please sign in to comment.