Skip to content

Commit

Permalink
Presenter dependency on DefaultBannerStyle (#34)
Browse files Browse the repository at this point in the history
- The Presenter depended on the DefaultBannerStyle implementation
directly instead of the BannerStyle protocol
  • Loading branch information
benjamin-hergert-hs committed Jul 3, 2020
1 parent 365ab3e commit d336d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/OwlBanners/OwlBannerPresenter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation

/// Defines a banner presenter
public protocol BannerPresenter {
func presentBanner(title: String, style: DefaultBannerStyle)
func presentBanner(title: String, style: BannerStyle)
}

/// An `OwlBanner` implementation of a `BannerPresenter`
Expand All @@ -13,7 +13,7 @@ public final class OwlBannerPresenter: BannerPresenter {
/// A initializes a `OwlBannerPresenter`
public init() { }

public func presentBanner(title: String, style: DefaultBannerStyle) {
public func presentBanner(title: String, style: BannerStyle) {
Banner(style, title: title).enqueue()
}
}

0 comments on commit d336d89

Please sign in to comment.