Skip to content

Commit

Permalink
Exposing GradientComponents and .reversed publicly
Browse files Browse the repository at this point in the history
  • Loading branch information
mergesort committed Sep 1, 2018
1 parent 2e3ac19 commit c255219
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Gradient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public protocol Gradient {
/// A `Gradient` is created when you compile an array of `GradientComponents`.
public struct GradientComponents {

let color: UIColor
let location: Double
public let color: UIColor
public let location: Double

}

Expand All @@ -44,7 +44,7 @@ public struct GradientAngle {
/// A `GradientAngle` that swaps the end point and start point.
/// This is useful if you want to create a gradient that goes from
/// dark to light rather than light to dark.
var reversed: GradientAngle {
public var reversed: GradientAngle {
return GradientAngle(start: self.end, end: self.start)
}

Expand Down

0 comments on commit c255219

Please sign in to comment.