You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import CoreGraphics
publicstructPillAnimation{enumAnimationDirection{case fromTop
case fromBottom
}vardirection:AnimationDirectionvaroffsetFromEdge:CGFloat}
This would also remove the need for the isNavigationControllerPresent variable which is really UIKit specific.
You would specify the proper offsetFromEdge to position it correctly.
This is needed so the stop position is dynamically calculated and would allow different stop position when animating from the top or the bottom.
I am open to relieving the dependency on UIKit specific or phone specific APIs. My original idea was to avoid offsetFromEdge, but with the addition of AppKit on macOS, it seems reasonable. Is there a time you need these changes by? I can try to work on it a little over the weekend, but PRs are much appreciated!
Right now, the pill reveals through the top, but it would be cool if you could reveal from the bottom
The text was updated successfully, but these errors were encountered: