2121// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222// THE SOFTWARE.
2323
24- #if os(iOS)
24+ #if os(iOS) || os(tvOS)
2525import UIKit
2626#else
2727import AppKit
@@ -119,7 +119,7 @@ internal class ConcreteConstraint: Constraint {
119119 self . updatePriority ( Float ( 750.0 ) )
120120 }
121121 internal override func updatePriorityMedium( ) -> Void {
122- #if os(iOS)
122+ #if os(iOS) || os(tvOS)
123123 self . updatePriority ( Float ( 500.0 ) )
124124 #else
125125 self . updatePriority ( Float ( 501.0 ) )
@@ -251,7 +251,7 @@ internal class ConcreteConstraint: Constraint {
251251 let layoutConstant : CGFloat = layoutToAttribute. snp_constantForValue ( self . constant)
252252
253253 // get layout to
254- #if os(iOS)
254+ #if os(iOS) || os(tvOS)
255255 var layoutTo : AnyObject ? = self . toItem. view ?? self . toItem. layoutSupport
256256 #else
257257 var layoutTo : AnyObject ? = self . toItem. view
@@ -397,7 +397,7 @@ private extension NSLayoutAttribute {
397397 }
398398 // CGPoint
399399 else if let point = value as? CGPoint {
400- #if os(iOS)
400+ #if os(iOS) || os(tvOS)
401401 switch self {
402402 case . Left, . CenterX, . LeftMargin, . CenterXWithinMargins: return point. x
403403 case . Top, . CenterY, . TopMargin, . CenterYWithinMargins, . Baseline, . FirstBaseline: return point. y
@@ -422,7 +422,7 @@ private extension NSLayoutAttribute {
422422 }
423423 // EdgeInsets
424424 else if let insets = value as? EdgeInsets {
425- #if os(iOS)
425+ #if os(iOS) || os(tvOS)
426426 switch self {
427427 case . Left, . CenterX, . LeftMargin, . CenterXWithinMargins: return insets. left
428428 case . Top, . CenterY, . TopMargin, . CenterYWithinMargins, . Baseline, . FirstBaseline: return insets. top
0 commit comments