SwiftUI module library for adding seasons theme animations to your app

Related tags

Guides HolidayThemes
Overview

HolidayThemes

SwiftUI module library for adding seasons theme animations to your app.

Requirements

  • iOS 13.0+
  • Xcode 12.0+

Installation

Swift Package Manager

The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

File -> Swift Packages -> Add Package Dependency, enter HolidayThemes repo's URL

HolidayThemes URL - https://github.com/yhondri/HolidayThemes

Included Themes

  • Autum
  • Spring
  • Summer
  • Winter

Creating HolidayThemeView

  1. Create a HolidayThemeView passing the frame that it will fill
GeometryReader { proxy in
    HolidayThemeView(frame: proxy.frame(in: .local))
}

You can customize the HolidayThemeView, for example passing a custom image or changing some of the values of the CAEmitterCell. To do this you need to pass an HolidayThemeData an fill the parameters that you want. 2. Customizing the theme with an image

GeometryReader { proxy in
    HolidayThemeView(frame: proxy.frame(in: .local), themeData: HolidayThemeData(particleImage: UIImage(named: "custom_image.png")!))
}
  1. There are a lot of parameters that you can customize
  • particle: Particle
  • particleImage: UIImage?
  • emitterPosition: CGPoint
  • emitterSize: CGSize
  • emitterMode: CAEmitterLayerEmitterMode
  • renderMode: CAEmitterLayerRenderMode
  • birthRate: Float
  • lifetime: Float
  • velocity: CGFloat
  • velocityRange: CGFloat
  • xAcceleration: CGFloat
  • yAcceleration: CGFloat
  • emissionRange: CGFloat
  • spin: CGFloat
  • spinRange: CGFloat
  • scale: CGFloat
  • scaleRange: CGFloat
  • backgroundColor: UIColor

License

MIT

Free Software, Hell Yeah!

The particle images are from:

You might also like...
🌊 Let your code flow. Extension methods for fluent syntax in Swift.

Flow 🌊 Let your code flow. This library provides a bunch of extension methods for a better fluent syntax in Swift. This style is very useful for some

Import files into your Swift scripts!
Import files into your Swift scripts!

Swiftmix is a tool aimed to make better use of Swift scripts. Right now there is no decent way to import source files in scripts without using SPM. Sw

DCL Private Library

DCLPrivateLibrary Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements Installation

This library is a UIView that is capable of Picture-in-Picture (PiP) in iOS.
This library is a UIView that is capable of Picture-in-Picture (PiP) in iOS.

日本語 UIPiPView This library is a UIView that is capable of Picture-in-Picture (PiP) in iOS. Using this library, information that is updated in real

SmartString - A powerful and small library that will allow the creation of complex String Styles
SmartString - A powerful and small library that will allow the creation of complex String Styles

SmartString A powerful and small library that will allow the creation of complex

Swift library of lightweight interfaces for prototyping, bridged to JS

Prototope Prototope is a lightweight, high-performance prototyping framework. Its goals are: making simple things very easy making complex things poss

CoreDragon is a drag'n'drop library for iOS applications
CoreDragon is a drag'n'drop library for iOS applications

CoreDragon is a drag'n'drop library for iOS applications. Instead of using context menus, modal view controllers, share sheets and other "indirect manipulation" ways of moving data around, it's much more intuitive to just grab the thing you want to move, and drop it on the place where you want to move it to.

Swift Client library to interact with Supabase Functions.

functions-swift Swift Client library to interact with Supabase Functions. Usage let client = FunctionsClient( url: URL(string: "https://project-id.s

his is my second app, made right after the I am Rich app
his is my second app, made right after the I am Rich app

I-am-Poop 💩 Hello everyone! This is my second app, made right after the I am Rich app, to better fixate the concepts I learned during this lesson, wh

Owner
null
A blog project where you can write your articles, upload photos, categorize them, and add them to your favorites

A blog project where you can write your articles, upload photos, categorize them, and add them to your favorites. The aim of the project is to learn the use of Core Data.

Cem 7 Mar 21, 2022
This a simple swiftui app where i used mvvm architecture, coredata swiftui and so on..

SwiftUI MVVM COREDATA NOTE APP This a simple swiftui app where i used mvvm architecture, coredata swiftui and so on... #FEATURES SWIFTUI MVVM COREDATA

Isaias Cuvula 1 Jul 20, 2022
⚛️ A Reactive Data-Binding and Dependency Injection Library for SwiftUI x Concurrency.

SwiftUI Atom Properties A Reactive Data-Binding and Dependency Injection Library for SwiftUI x Concurrency ?? API Reference Introduction Examples Gett

Ryo Aoyama 199 Dec 17, 2022
MockChat TDD MVVM SwiftUI - Mockable, Test driven Development, clear Architecture example using SwiftUI

MockChat_TDD_MVVM_SwiftUI Mockable, Test driven Development, clear Architecture

Zahirul Islam 0 Feb 5, 2022
A demo demonstrates how to use combine and MVVM in the SwiftUI app

SwiftUI-MVVM-Combine A demo demonstrates how to use combine and MVVM in the Swif

Asa. Ga 7 Jul 5, 2022
An app to demo networking with SwiftUI/MVVM

Network Demo An app to demonstrate how network calls can be implemented in a SwiftUI/MVVM app. Motivations Apple's introductory tutorial is a great st

Tatsuya Kaneko 6 Oct 7, 2022
Braze is a Crypto Currency App created using SwiftUI with MVVM architecture.

Braze A Crypto Currency App created using SwiftUI with MVVM architecture. Braze tracks live prices of crypto coins and can create mock portfolio. Usin

Roy 5 Dec 7, 2022
👨‍💻Watch the latest and greatest conference videos on your Mac

Conferences.digital is the best way to watch the latest and greatest videos from your favourite developer conferences for free on your Mac. Either sea

Timon Blask 768 Jan 4, 2023
Have you ever wanted to just throw your optional like a table?

JebStolem Have you ever wanted to just throw your optional like a table? Or mayb

Piotr Szadkowski 1 Feb 23, 2022