-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from cats-oss/support-xcode10
Support Xcode10
- Loading branch information
Showing
10 changed files
with
125 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// FillMode.swift | ||
// Sica-iOS | ||
// | ||
// Created by 中澤郁斗 on 2018/09/28. | ||
// Copyright © 2018年 中澤 郁斗. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct FillMode { | ||
#if swift(>=4.2) | ||
typealias RawValue = CAMediaTimingFillMode | ||
public static let forwards = FillMode(rawValue: .forwards) | ||
public static let backwards = FillMode(rawValue: .backwards) | ||
public static let both = FillMode(rawValue: .both) | ||
public static let removed = FillMode(rawValue: .removed) | ||
#else | ||
typealias RawValue = String | ||
public static let forwards = FillMode(rawValue: kCAFillModeForwards) | ||
public static let backwards = FillMode(rawValue: kCAFillModeBackwards) | ||
public static let both = FillMode(rawValue: kCAFillModeBoth) | ||
public static let removed = FillMode(rawValue: kCAFillModeRemoved) | ||
#endif | ||
|
||
let rawValue: RawValue | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.