Skip to content

Commit

Permalink
fix Swift 3.1 & Xcode 8.3 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Seliverstov committed Apr 3, 2017
1 parent b19e4f6 commit 33cd22a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Constructors/Spring.swift
Expand Up @@ -84,7 +84,7 @@ import UIKit
return (ingredients: ingredients, distillery: distillery)
}

@discardableResult private func validate(_ distillery: Distillery) {
private func validate(_ distillery: Distillery) {
var shouldProceed = true
distilleries.forEach {
if let ingredients = $0.ingredients.first, let ingredient = ingredients.first , ingredient.finalValues.isEmpty {
Expand Down
2 changes: 1 addition & 1 deletion Source/Constructors/Still.swift
Expand Up @@ -7,7 +7,7 @@ import UIKit
- Parameter view: The view you want to apply the animation to.
- Parameter key: An optional key to put in the animation.
*/
@discardableResult public func distill(_ sets: (animation: CAKeyframeAnimation, final: NSValue)..., view: UIView, key: String? = nil) {
public func distill(_ sets: (animation: CAKeyframeAnimation, final: NSValue)..., view: UIView, key: String? = nil) {

for set in sets {
guard let keyPath = set.animation.keyPath, let property = Animation.Property(rawValue: keyPath),
Expand Down

0 comments on commit 33cd22a

Please sign in to comment.