Skip to content

feat: Allow custom transition animation for popups#200

Open
videni wants to merge 1 commit intoMijick:mainfrom
videni:feature/custom-transition
Open

feat: Allow custom transition animation for popups#200
videni wants to merge 1 commit intoMijick:mainfrom
videni:feature/custom-transition

Conversation

@videni
Copy link

@videni videni commented Dec 15, 2025

Summary

Add support for custom transition animations on vertical popups (TopPopup/BottomPopup).

Closes #199

Changes

  • Add transition property to LocalConfigVertical
  • Add transition(_ value: AnyTransition) configuration method
  • Update PopupVerticalStackView to use custom transition when configured
  • Default behavior unchanged (.move(edge:) transition)

Usage

func configurePopup(config: BottomPopupConfig) -> BottomPopupConfig {
    config
        .transition(.opacity)  // Fade in/out instead of slide
}

// Or combined transitions
func configurePopup(config: TopPopupConfig) -> TopPopupConfig {
    config
        .transition(.scale.combined(with: .opacity))
}

@videni videni requested a review from FulcrumOne as a code owner December 15, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Allow custom transition animation for popups

1 participant