peterprokop / SwiftOverlays

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

Swift 3.1 @discardableResult warning of showNotificationOnTopOfStatusBar #31

Closed fiveze closed 7 years ago

fiveze commented 7 years ago

New Swift 3.1 is showing warning:

SwiftOverlays.swift:93:5: @discardableResult declared on a function returning Void is unnecessary


    /**
        Shows notification on top of the status bar, similar to native local or remote notifications

        - parameter notificationView: View that will be shown as notification
        - parameter duration: Amount of time until notification disappears
        - parameter animated: Should appearing be animated
    */
    @discardableResult
    class func showNotificationOnTopOfStatusBar(_ notificationView: UIView, duration: TimeInterval, animated: Bool = true) {
        SwiftOverlays.showAnnoyingNotificationOnTopOfStatusBar(notificationView, duration: duration, animated: animated)
    }