Releases: cruisediary/Pastel
Releases · cruisediary/Pastel
1.0.0
What's New
SwiftUI Support
Full SwiftUI API — PastelGradientView, PastelText, PastelImage, and .pastelBackground() ViewModifier. All components share PastelAnimationState for synchronized multi-component animation.
PastelGradientView(gradient: .sunset, duration: 4.0)
PastelText("Hello", font: .largeTitle, gradient: .trueSunset)
Text("Hello").pastelBackground(.ripeMalinka)Animation Resilience Fix
Replaced the fragile CABasicAnimation delegate chain with a single CAKeyframeAnimation(repeatCount: .infinity). Animation no longer stops on modal presentation (.pageSheet).
Gradient Image Masking
PastelImageView (UIKit) and PastelImage (SwiftUI) apply animated gradients to image assets.
// UIKit
let logoView = PastelImageView(frame: .zero)
logoView.image = UIImage(named: "logo")
logoView.setColors(PastelGradient.malibuBeach.colors())
logoView.startAnimation()
// SwiftUI
PastelImage(uiImage, gradient: .malibuBeach, duration: 3.0)30 Built-in Gradient Presets
PastelGradient enum with 30 presets available across UIKit and SwiftUI.
Compatibility
| iOS | 16.0+ |
| Swift | 5.9+ |
| Distribution | SPM · CocoaPods |
| Breaking changes | None — existing PastelView API unchanged |
0.6.0
- Support Swift 5 - @agisboye
- Support TV OS 10.0 + - @AFRUITPIE
0.5.1
- support swift 4.2
- supported by by @julienwidmer
0.5.0
- Support Xcode 10, Swift 4
- Add more PastelGradient Set
0.4.0
0.3.0
0.2.2
0.2.1
Support Carthage
0.2.0
- Support animation direction
0.1.2
- Fix the issue that can't use PastelView (#1 @iBluemind)