Skip to content

Instantly share code, notes, and snippets.

@Exey
Created April 3, 2020 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Exey/2915fae10cc4ba845c9a5957c8cbdf75 to your computer and use it in GitHub Desktop.
Save Exey/2915fae10cc4ba845c9a5957c8cbdf75 to your computer and use it in GitHub Desktop.
import SwiftUI
extension AnyTransition {
static var moveUpAndFade: AnyTransition {
let insertion = AnyTransition.move(edge: .top).combined(with: .opacity)
let removal = AnyTransition.move(edge: .top).combined(with: .opacity)
return .asymmetric(insertion: insertion, removal: removal)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment