Skip to content

MeshBlobGradients A dynamic iOS application showcasing fluid, animated gradient backgrounds with customizable layers and blur effects using Core Animation and CALayer. Made using UIKit and inspired from the SwiftUI variant github.com/Cindori/FluidGradient

Notifications You must be signed in to change notification settings

matthewharrilal/MeshGradients

Repository files navigation

MeshBlobGradients

MeshBlobGradients is the UIKit counterpart to FluidGradient, designed to demonstrate a similar fluid, animated gradient effect using CAGradientLayer. Unlike its SwiftUI counterpart, this implementation is not easily customizable without modifying the internal codebase.

Overview

This project leverages CAGradientLayer to create multiple sublayers within a view, each representing a blob of color. Core Animation is used to animate the position and opacity of these blobs, generating a dynamic, ever-changing gradient effect. The animations are driven by random points and speed variations, resulting in a visually engaging experience.

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-08-30.at.01.03.44.mp4

Key Features

  • UIKit-Based Implementation: Entirely built using UIKit, providing a traditional approach to iOS UI development.
  • Multi-Sublayer Animations: Each gradient is created by adding multiple sublayers to the view, each with independent animation properties.
  • Randomized Motion: Positions, radii, and speeds of animations are randomized, creating a fluid, organic effect.

Installation

Clone the repository and open the project in Xcode.

git clone https://github.com/yourusername/MeshBlobGradients.git
cd MeshBlobGradients
open MeshBlobGradients.xcodeproj

About

MeshBlobGradients A dynamic iOS application showcasing fluid, animated gradient backgrounds with customizable layers and blur effects using Core Animation and CALayer. Made using UIKit and inspired from the SwiftUI variant github.com/Cindori/FluidGradient

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages