Skip to content

Commit 4bc5b3b

Browse files
committed
Fixed tv os compability.
1 parent c20552f commit 4bc5b3b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/SparrowKit/UIKit/Extensions/UIViewExtension.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ extension UIView {
321321
- parameter curve: Style of round curve.
322322
*/
323323
open func roundCorners(_ curve: CornerCurve = .continuous) {
324-
if #available(iOS 13.0, *) {
324+
if #available(iOS 13.0, tvOS 13.0, *) {
325325
layer.cornerCurve = curve.layerCornerCurve
326326
}
327327
layer.cornerRadius = min(frame.width, frame.height) / 2
@@ -432,7 +432,7 @@ extension UIView {
432432
case circle
433433
case continuous
434434

435-
@available(iOS 13.0, *)
435+
@available(iOS 13.0, tvOS 13.0, *)
436436
var layerCornerCurve: CALayerCornerCurve {
437437
switch self {
438438
case .circle: return .circular

SparrowKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'SparrowKit'
4-
s.version = '3.3.8'
4+
s.version = '3.3.9'
55
s.summary = 'Collection of native Swift extensions to boost your development. Support tvOS and watchOS.'
66
s.homepage = 'https://github.com/ivanvorobei/SparrowKit'
77
s.source = { :git => 'https://github.com/ivanvorobei/SparrowKit.git', :tag => s.version }

0 commit comments

Comments
 (0)