- Added snackbar allowDuplicates
- Added more methods to delegate (will/did show, will/did hide)
- Return a default identifier for LPSnackBar
- Return LPSnackBar target in delegate
- New LPSnackManager
- Build with Swift 5.0
- Build with Swift 4.2.0
- Build with Swift 4.1.2
- Build with Swift 4.1
- Add support for
safeAreaInsets
, this guarantees that the snack will be placed within the correct frame, which fixes support for iPhone X. - To add support for
safeAreaInsets
, a new propertyadjustsPositionForSafeArea
was added. With this set totrue
the snack will adjust it's position to fit within the correct frame. - Updated example project
- Add support for carthage by updating to
shared
scheme.
- Fix issue where same snack couldn't be dismissed then shown again. This is now possible.
- Breaking API change to initializer for
LPSnackbar
, the initializers no longer take adisplayDuration
. - Removed
displayDuration
member fromLPSnackbar
. - Add
displayDuration
parameter to theshow()
method, works the same as before, but it is now in a more general place as display duration may now change whenever you present the snack.
- Fix issue where
LPSnackbarView
's subviews were not accessible with accessibility.
- Fix bug where
displayTimer
was not being invalidated when callingdismiss(animated:completeWithAction)
. This bug caused theSnackbarCompletion
to be called twice.
- Add
Equatable
conformance toLPSnackbar
- Add new parameter to
dismiss(show:)
,completeWithAction: Bool
which allows you to dismiss theLPSnackbar
manually while also returningtrue
for action in theSnackbarCompletion
.
Initial release