From b02b0910dbb619c6dc6d698ae90d419bf1cb4be6 Mon Sep 17 00:00:00 2001 From: Suyeol Jeon Date: Sun, 9 Nov 2014 22:39:14 +0900 Subject: [PATCH] Add platform check for additional constraints attributes. --- Snappy/ConstraintAttributes.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Snappy/ConstraintAttributes.swift b/Snappy/ConstraintAttributes.swift index ddc8137..5291ca3 100644 --- a/Snappy/ConstraintAttributes.swift +++ b/Snappy/ConstraintAttributes.swift @@ -116,6 +116,7 @@ internal struct ConstraintAttributes: RawOptionSetType, BooleanType { if (self & ConstraintAttributes.Baseline) { attrs.append(.Baseline) } + #if os(ios) if (self & ConstraintAttributes.FirstBaseline) { attrs.append(.FirstBaseline) } @@ -143,6 +144,7 @@ internal struct ConstraintAttributes: RawOptionSetType, BooleanType { if (self & ConstraintAttributes.CenterYWithinMargins) { attrs.append(.CenterYWithinMargins) } + #endif return attrs } }