소스 검색

Merge pull request #28 from devxoul/patch-1

Add platform check for additional constraints attributes.
Robert Payne 11 년 전
부모
커밋
e723c0c8a7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Snappy/ConstraintAttributes.swift

+ 2 - 0
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
     }
 }