peterprokop / SwiftOverlays

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

Change text in AnnoyingNotification.xib #24

Closed jsonmat closed 7 years ago

jsonmat commented 7 years ago

How do specify the text to be shown in AnnoyingNotification.xib?

peterprokop commented 7 years ago

In

Bundle.main.loadNibNamed("AnnoyingNotification", owner: self, options: nil)
annoyingNotificationView!.frame.size.width = self.view.bounds.width;

UIViewController.showNotificationOnTopOfStatusBar(annoyingNotificationView!, duration: 5)

you can change "AnnoyingNotification" to your own xib name and use any design and texts you wish.