SlideOverCard icon indicating copy to clipboard operation
SlideOverCard copied to clipboard

SOCManager present animation speed

Open wambambizzle opened this issue 2 years ago • 2 comments

Version: SlideOverCard 2.0.0, Xcode 13.3 Issue: Unnaturally fast animation when displaying a card using SOCManager.present vs .slideOverCard(isPresented.

I would expect both versions to display the card at the same animation speed. The SOCManager presents the card so quickly that it feels off.

Potential Quick Fix: Give the SOCManager the same animation speed as the slideOverCard

Potential Enhancement: Add and option to change the speeds between slow, medium, fast, and or passing in custom animation speeds

Code snippets:

Button {
    showLogIn = true

    SOCManager.present(isPresented: $showLogIn, onDismiss: {
       // code
    }, options: [.disableDrag, .disableDragToDismiss, .hideExitButton]) {
      SomeView(isPresented: $showLogIn)
    }
  }
}
.slideOverCard(isPresented: $showView, options: [.disableDrag, .disableDragToDismiss, .hideExitButton]) {
  SomeView(isPresented: $showSummary)
}

Thank you for your time.

wambambizzle avatar Apr 08 '22 15:04 wambambizzle

same problem here

antonioreyna avatar Oct 18 '22 00:10 antonioreyna

I have the same problem with SOCManager.present, which is presented too fast. Are there plans to fix this issue?

Environment: Xcode version: 15.0.1 SlideOverCard version: 2.1.0

Bartozo avatar Jan 11 '24 10:01 Bartozo