peterprokop / SwiftOverlays

SwiftOverlays is a Swift GUI library for displaying various popups and notifications
MIT License
631 stars 83 forks source link

Calling UIViewController.showOnTopOfStatusBar twice has strange effects #40

Open stefanengel opened 6 years ago

stefanengel commented 6 years ago

Hi there,

if you call UIViewController.showOnTopOfStatusBar(view, duration: 1, animated: true) and then call it again before the first notification disappeared, all further calls will show the notification twice.

Please see the following clip to get a better understanding: ezgif com-video-to-gif

Is there a way to remove the old notification that is still visible below the new one?

peterprokop commented 6 years ago

@stefanengel thanks for reporting, I will take a look