Skip to content

Commit

Permalink
Merge pull request #16 from urbn/tvos-fix
Browse files Browse the repository at this point in the history
Add tvOS since URBNSwiftyConvenience supports it
  • Loading branch information
codecaffeine authored Nov 13, 2017
2 parents 4daab80 + c7cf713 commit cdaf67b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- URBNSwiftyConvenience (0.3.3)
- URBNSwiftyConvenience (0.4.0)

DEPENDENCIES:
- URBNSwiftyConvenience (from `../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ../

SPEC CHECKSUMS:
URBNSwiftyConvenience: c8c756be98f345922556bfc1001c379056ccc933
URBNSwiftyConvenience: 379718f4415e1c73dcaa3e18ae0a2fafcecfbbcf

PODFILE CHECKSUM: b1a00df3b001c7558afb1929e95f3522d9d92a6b

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions URBNSwiftyConvenience/Classes/UIViewAnchorConvenience.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Foundation
///
extension UIView {
var safeAreaBottomAnchor: NSLayoutYAxisAnchor {
if #available(iOS 11, *) {
if #available(iOS 11, tvOS 11, *) {
return safeAreaLayoutGuide.bottomAnchor
}
else {
Expand All @@ -20,7 +20,7 @@ extension UIView {
}

var safeAreaCenterXAnchor: NSLayoutXAxisAnchor {
if #available(iOS 11, *) {
if #available(iOS 11, tvOS 11, *) {
return safeAreaLayoutGuide.centerXAnchor
}
else {
Expand All @@ -29,7 +29,7 @@ extension UIView {
}

var safeAreaCenterYAnchor: NSLayoutYAxisAnchor {
if #available(iOS 11, *) {
if #available(iOS 11, tvOS 11, *) {
return safeAreaLayoutGuide.centerYAnchor
}
else {
Expand All @@ -38,7 +38,7 @@ extension UIView {
}

var safeAreaHeightAnchor: NSLayoutDimension {
if #available(iOS 11, *) {
if #available(iOS 11, tvOS 11, *) {
return safeAreaLayoutGuide.heightAnchor
}
else {
Expand All @@ -47,7 +47,7 @@ extension UIView {
}

var safeAreaLeadingAnchor: NSLayoutXAxisAnchor {
if #available(iOS 11, *) {
if #available(iOS 11, tvOS 11, *) {
return safeAreaLayoutGuide.leadingAnchor
}
else {
Expand All @@ -56,7 +56,7 @@ extension UIView {
}

var safeAreaLeftAnchor: NSLayoutXAxisAnchor {
if #available(iOS 11, *) {
if #available(iOS 11, tvOS 11, *) {
return safeAreaLayoutGuide.leftAnchor
}
else {
Expand All @@ -65,7 +65,7 @@ extension UIView {
}

var safeAreaRightAnchor: NSLayoutXAxisAnchor {
if #available(iOS 11, *) {
if #available(iOS 11, tvOS 11, *) {
return safeAreaLayoutGuide.rightAnchor
}
else {
Expand All @@ -74,7 +74,7 @@ extension UIView {
}

var safeAreaTopAnchor: NSLayoutYAxisAnchor {
if #available(iOS 11, *) {
if #available(iOS 11, tvOS 11, *) {
return safeAreaLayoutGuide.topAnchor
}
else {
Expand All @@ -83,7 +83,7 @@ extension UIView {
}

var safeAreaTrailingAnchor: NSLayoutXAxisAnchor {
if #available(iOS 11, *) {
if #available(iOS 11, tvOS 11, *) {
return safeAreaLayoutGuide.trailingAnchor
}
else {
Expand All @@ -92,7 +92,7 @@ extension UIView {
}

var safeAreaWidthAnchor: NSLayoutDimension {
if #available(iOS 11, *) {
if #available(iOS 11, tvOS 11, *) {
return safeAreaLayoutGuide.widthAnchor
}
else {
Expand Down

0 comments on commit cdaf67b

Please sign in to comment.