Skip to content

Commit

Permalink
Make it build for tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
intitni committed Apr 23, 2021
1 parent 7068667 commit 5e09303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SmoothGradient/SmoothGradientGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ import SwiftUI

extension SmoothGradientGenerator {
/// Generate gradient from SwiftUI `Color`s.
@available(iOS 14.0, OSX 11, *)
@available(iOS 14.0, OSX 11, tvOS 14, *)
public func generate(
from: Color,
to: Color,
Expand Down Expand Up @@ -150,7 +150,7 @@ extension SmoothGradientGenerator {
}
}

@available(iOS 14.0, OSX 11, *)
@available(iOS 14.0, OSX 11, tvOS 14, *)
extension Color {
func toRGB() -> RGBColor {
guard let components = cgColor?.components else { return .init(r: 0, g: 0, b: 0, alpha: 0) }
Expand Down

0 comments on commit 5e09303

Please sign in to comment.