mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Restored files from old Mac, force pushing
This commit is contained in:
parent
5dd95228b8
commit
5040381840
126 changed files with 10431 additions and 67 deletions
29
DynamicIsland/animations/drop.swift
Normal file
29
DynamicIsland/animations/drop.swift
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
//
|
||||
// drop.swift
|
||||
// DynamicIsland
|
||||
//
|
||||
// Created by Harsh Vardhan Goswami on 04/08/24.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
|
||||
public class DynamicIslandAnimations {
|
||||
@Published var notchStyle: Style = .notch
|
||||
|
||||
init() {
|
||||
self.notchStyle = .notch
|
||||
}
|
||||
|
||||
var animation: Animation {
|
||||
if #available(macOS 14.0, *), notchStyle == .notch {
|
||||
Animation.spring(.bouncy(duration: 0.4))
|
||||
} else {
|
||||
Animation.timingCurve(0.16, 1, 0.3, 1, duration: 0.7)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Move all animations to this file
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue