Skip to content

Releases: cruisediary/Pastel

1.0.0

24 Mar 08:40

Choose a tag to compare

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

27 Jul 08:03

Choose a tag to compare

0.6.0 Pre-release
Pre-release

0.5.1

23 Sep 13:14

Choose a tag to compare

0.5.1 Pre-release
Pre-release

0.5.0

23 Sep 08:22
0eb3059

Choose a tag to compare

  • Support Xcode 10, Swift 4
  • Add more PastelGradient Set

0.4.0

11 Mar 09:07

Choose a tag to compare

Add PastelLabel
Support Swift4 #28 by @Drwalcore

0.3.0

18 May 14:05

Choose a tag to compare

  • Add PastelGradient 10 color set #13
  • Making PastelView more Objc compatible. #9 by @kgellci

0.2.2

17 May 12:41

Choose a tag to compare

0.2.1

17 May 12:55

Choose a tag to compare

Support Carthage

0.2.0

07 May 10:05

Choose a tag to compare

  • Support animation direction

0.1.2

05 May 18:21

Choose a tag to compare

0.1.2 Pre-release
Pre-release