This file contains hidden or 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
| import Foundation | |
| extension TimeInterval { | |
| struct DateComponents { | |
| static let formatterPositional: DateComponentsFormatter = { | |
| let formatter = DateComponentsFormatter() | |
| formatter.allowedUnits = [.hour,.minute,.second] | |
| formatter.unitsStyle = .positional | |
| formatter.zeroFormattingBehavior = .pad | |
| return formatter |
This file contains hidden or 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
| import SwiftUI | |
| extension Animation { | |
| public static func easeInSin(duration: Double) -> Animation { | |
| return self.timingCurve(0.47, 0, 0.745, 0.715, duration: duration) | |
| } | |
| public static var easeInSin: Animation = Animation.timingCurve(0.47, 0, 0.745, 0.715) |