The current implementation of Presenter check for a topBottomStyle using TopBottomAnimation.Style enum which allow during install to present the Message over or under navigation-bar and tab-bar.
However the current implementation of the topBottomStyle computed property limit all customisation of behaviour and only allow presentation in .top or .bottom style with the TopBottomAnimation animator.
I've implemented a simple TopBottomPresentable protocol which return the TopBottomAnimation.Style? behaviour needed; thus we can add conformance of this protocol to our existing TopBottomAnimation and PhysicsAnimation.
This would allow customisation in any Animator in the futur by simple conforming to TopBottomPresentable.
Hope this is convenient for other people as well and can make it in, I'll be available if you need any change or need to drop the last commit (podspecs & version change for my own use atm)
The current implementation of
Presenter
check for atopBottomStyle
usingTopBottomAnimation.Style
enum which allow during install to present theMessage
over or undernavigation-bar
andtab-bar
.However the current implementation of the
topBottomStyle
computed property limit all customisation of behaviour and only allow presentation in.top
or.bottom
style with theTopBottomAnimation
animator.I've implemented a simple
TopBottomPresentable
protocol which return theTopBottomAnimation.Style?
behaviour needed; thus we can add conformance of this protocol to our existingTopBottomAnimation
andPhysicsAnimation
.This would allow customisation in any
Animator
in the futur by simple conforming toTopBottomPresentable
.Hope this is convenient for other people as well and can make it in, I'll be available if you need any change or need to drop the last commit (podspecs & version change for my own use atm)