Skip to content

Commit

Permalink
Update PartialSheetStyle.swift (#59)
Browse files Browse the repository at this point in the history
added public init method
  • Loading branch information
voltec authored Aug 26, 2020
1 parent 5467190 commit 1e89905
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Sources/PartialSheet/PartialSheetStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ public struct PartialSheetStyle {

/// The corner radius of Sheet
var cornerRadius: CGFloat

public init(background: PartialSheetBackground,
handlerBarColor: Color,
enableCover: Bool,
coverColor: Color,
blurEffectStyle: UIBlurEffect.Style? = nil,
cornerRadius: CGFloat
) {
self.background = background
self.handlerBarColor = handlerBarColor
self.enableCover = enableCover
self.coverColor = coverColor
self.cornerRadius = cornerRadius
}
}

extension PartialSheetStyle {
Expand Down

0 comments on commit 1e89905

Please sign in to comment.