Skip to content

Commit

Permalink
Merge pull request #129 from lukysnupy/feat/swiftPackageTests
Browse files Browse the repository at this point in the history
Swift package Tests
  • Loading branch information
s4cha committed Nov 13, 2019
2 parents 0374ef4 + 6a67115 commit 7d42463
Show file tree
Hide file tree
Showing 20 changed files with 39 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Source/Stevia+Alignment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

/** Aligns an array of views Horizontally (on the X Axis)
Expand Down Expand Up @@ -428,3 +429,4 @@ public func align(_ attribute: NSLayoutConstraint.Attribute, views: [UIView]) ->
}
return views
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Baselines.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2018 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

/** Aligns an array of views by their lastBaselines (on the Y Axis)
Expand Down Expand Up @@ -75,3 +76,4 @@ public func align(firstBaselines views: [UIView]) -> [UIView] {
}
return views
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Center.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public extension UIView {
Expand Down Expand Up @@ -100,3 +101,4 @@ public extension UIView {
return self
}
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Constraints.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2015 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

// MARK: - Shortcut
Expand Down Expand Up @@ -148,3 +149,4 @@ public extension UIView {
}

}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Content.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2015 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public extension UIButton {
Expand Down Expand Up @@ -100,3 +101,4 @@ extension UIImageView {
return self
}
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+DoubleDash.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

infix operator -- :AdditionPrecedence
Expand Down Expand Up @@ -96,3 +97,4 @@ public func -- (left: UIView, right: SteviaRightFlexibleMargin) -> UIView {
public func -- (left: [UIView], right: SteviaRightFlexibleMargin) -> [UIView] {
return left-right
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Equation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2017 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public struct SteviaAttribute {
Expand Down Expand Up @@ -250,3 +251,4 @@ public func <= (left: SteviaAttribute, right: CGFloat) -> NSLayoutConstraint {
}
return NSLayoutConstraint()
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Fill.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public extension UIView {
Expand Down Expand Up @@ -68,3 +69,4 @@ public extension UIView {
return self
}
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+FlexibleMargin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

prefix operator >=
Expand Down Expand Up @@ -124,3 +125,4 @@ public func - (left: [UIView], right: SteviaRightFlexibleMargin) -> [UIView] {
}
return left
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+GetConstraint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public extension UIView {
Expand Down Expand Up @@ -195,3 +196,4 @@ func constraintForView(_ v: UIView, attribute: NSLayoutConstraint.Attribute) ->
// Look for constraint on superview.
return lookForConstraint(in: v.superview)
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Hierarchy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2015 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public extension UIView {
Expand Down Expand Up @@ -163,3 +164,4 @@ public extension UICollectionViewCell {
return contentView.sv(subViews)
}
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+LayoutAnchors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2017 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

@available(iOS 9.0, *)
Expand Down Expand Up @@ -157,3 +158,4 @@ public extension UILayoutSupport {
return SteviaLayoutYAxisAnchor(anchor: bottomAnchor)
}
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Notifications.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2015 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public extension NSObject {
Expand All @@ -18,3 +19,4 @@ public extension NSObject {
}
}
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Operators.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

prefix operator |
Expand Down Expand Up @@ -206,3 +207,4 @@ public func - (left: Space, right: UIView) -> [UIView] {
va?.append(right)
return va!
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Percentage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2017 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public struct SteviaPercentage {
Expand Down Expand Up @@ -234,3 +235,4 @@ public extension UIView {
return self
}
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Position.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public extension UIView {
Expand Down Expand Up @@ -218,3 +219,4 @@ public extension UIView {
return self
}
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Size.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public extension UIView {
Expand Down Expand Up @@ -277,3 +278,4 @@ private func equal(_ attribute: NSLayoutConstraint.Attribute, views: [UIView]) {
previousView = v
}
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Stacks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2016 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public extension UIView {
Expand Down Expand Up @@ -160,3 +161,4 @@ public extension UIView {
return v
}
}
#endif
2 changes: 2 additions & 0 deletions Source/Stevia+Style.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2015 Sacha Durand Saint Omer. All rights reserved.
//

#if canImport(UIKit)
import UIKit

public extension UIAppearance {
Expand Down Expand Up @@ -41,3 +42,4 @@ public extension UIAppearance {
return self
}
}
#endif
2 changes: 1 addition & 1 deletion SteviaLayout.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SteviaLayout'
s.version = "4.7.1"
s.version = "4.7.2"
s.summary = "Elegant view layout for iOS"
s.homepage = "https://github.com/s4cha/Stevia"
s.license = { :type => "MIT", :file => "LICENSE" }
Expand Down

0 comments on commit 7d42463

Please sign in to comment.