Skip to content

DOOM wipe transition for SwiftUI. That's it. That's all it does.

License

Notifications You must be signed in to change notification settings

frzi/swiftui-doomwipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doom Wipe transition for SwiftUI

SwiftUI SwiftUI Swift MIT

A transition for your SwiftUI views that simulates the 1993 classic DOOM screen wipe (the melting effect, you know the one!)

Demonstration

Important

This transition utilizes SwiftUI 5's .layerEffect. AppKit/UIKit powered views will not work. This includes views like TextField.

How to use

Use it like any other transition:

import DoomWipe

MyView()
	.transition(.doomWipe)

Additionally, you can initialize a Shader with custom parameters to setup your own transitions. Or to apply the .layerEffect wherever.

import DoomWipe

let doomWipe = DoomWipeShader(
	dimensions: viewDimensions,
	animationPosition: time,
	direction: .down
)
let shader: Shader = doomWipe.shader

License

MIT License.