https://github.com/frzi/swiftui-doomwipe
DOOM wipe transition for SwiftUI. That's it. That's all it does.
https://github.com/frzi/swiftui-doomwipe
animation doom double-barrel-shotgun dumb swiftui why
Last synced: 7 months ago
JSON representation
DOOM wipe transition for SwiftUI. That's it. That's all it does.
- Host: GitHub
- URL: https://github.com/frzi/swiftui-doomwipe
- Owner: frzi
- License: mit
- Created: 2024-08-19T14:45:05.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T12:52:50.000Z (11 months ago)
- Last Synced: 2024-12-23T00:50:22.648Z (7 months ago)
- Topics: animation, doom, double-barrel-shotgun, dumb, swiftui, why
- Language: Swift
- Homepage:
- Size: 5.37 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://developer.apple.com/xcode/swiftui)
[](https://swift.org)
[](https://opensource.org/licenses/MIT)A transition for your SwiftUI views that simulates the 1993 classic DOOM screen wipe (the melting effect, you know the one!)
> [!IMPORTANT]
> This transition utilizes SwiftUI 5's [.layerEffect](https://developer.apple.com/documentation/swiftui/view/layereffect(_:maxsampleoffset:isenabled:)). AppKit/UIKit powered views will *not* work. This includes views like `TextField`.## How to use
Use it like any other transition:
```swift
import DoomWipeMyView()
.transition(.doomWipe)
```Additionally, you can initialize a `Shader` with custom parameters to setup your own transitions. Or to apply the `.layerEffect` wherever.
```swift
import DoomWipelet doomWipe = DoomWipeShader(
dimensions: viewDimensions,
animationPosition: time,
direction: .down
)
let shader: Shader = doomWipe.shader
```## License
[MIT License](LICENSE).