From 1e89905fd71d0b39d6dbcd99d28f5522d5a4eeb9 Mon Sep 17 00:00:00 2001 From: voltec Date: Wed, 26 Aug 2020 22:09:43 +0400 Subject: [PATCH] Update PartialSheetStyle.swift (#59) added public init method --- Sources/PartialSheet/PartialSheetStyle.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Sources/PartialSheet/PartialSheetStyle.swift b/Sources/PartialSheet/PartialSheetStyle.swift index bd7b6b2..6cf31d6 100644 --- a/Sources/PartialSheet/PartialSheetStyle.swift +++ b/Sources/PartialSheet/PartialSheetStyle.swift @@ -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 {