Skip to content

Commit

Permalink
Renaming layerPoints to gradientPoints
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaranes authored and JakeLin committed Jan 10, 2018
1 parent 8fd85ea commit 6dfc024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Protocols/Designable/GradientDesignable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ extension GradientDesignable {
let layer = CAGradientLayer()
layer.colors = colors

let points = layerPoints()
let points = gradientPoints()
layer.startPoint = points.0
layer.endPoint = points.1
return layer
Expand All @@ -104,13 +104,13 @@ extension GradientDesignable {
let layer = RadialGradientLayer()
layer.colors = colors

let points = layerPoints()
let points = gradientPoints()
layer.startPoint = points.0
layer.endPoint = points.1
return layer
}

private func layerPoints() -> (CGPoint, CGPoint) {
private func gradientPoints() -> (CGPoint, CGPoint) {
switch startPoint {
case .top:
return (CGPoint(x: 0.5, y: 0), CGPoint(x: 0.5, y: 1))
Expand Down

0 comments on commit 6dfc024

Please sign in to comment.