MijickCamera/Sources/Internal/Extensions/Animation++.swift

21 lines
514 B
Swift
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// Animation++.swift of MijickCamera
//
// Created by Tomasz Kurylik. Sending from Kraków!
// - Mail: tomasz.kurylik@mijick.com
// - GitHub: https://github.com/FulcrumOne
// - Medium: https://medium.com/@mijick
//
// Copyright ©2024 Mijick. All rights reserved.
import SwiftUI
// MARK: Custom Animation
extension Animation {
static var mSpring: Animation { .spring(duration: duration, bounce: 0, blendDuration: 0) }
}
extension Animation {
static var duration: CGFloat { 0.3 }
}