diff --git a/Sources/MaterialShowcase/MaterialShowcase.swift b/Sources/MaterialShowcase/MaterialShowcase.swift index ef44b52..7db0465 100644 --- a/Sources/MaterialShowcase/MaterialShowcase.swift +++ b/Sources/MaterialShowcase/MaterialShowcase.swift @@ -216,7 +216,7 @@ extension MaterialShowcase { } /// Shows it over current screen after completing setup process - @objc public func show(animated: Bool = true,hasShadow: Bool = true, hasSkipButton: Bool = false, completion handler: (()-> Void)?) { + @objc public func show(animated: Bool = true, hasShadow: Bool = true, hasSkipButton: Bool = false, completion handler: (()-> Void)?) { initViews() alpha = 0.0 containerView.addSubview(self) diff --git a/Sources/MaterialShowcase/MaterialShowcaseSequence.swift b/Sources/MaterialShowcase/MaterialShowcaseSequence.swift index c0cc146..769ab96 100644 --- a/Sources/MaterialShowcase/MaterialShowcaseSequence.swift +++ b/Sources/MaterialShowcase/MaterialShowcaseSequence.swift @@ -20,11 +20,11 @@ public class MaterialShowcaseSequence { showcaseArray.append(showcase) return self } - public func start() { + public func start(hasShadow: Bool = true) { guard !getUserState(key: self.key) else { return } - showcaseArray.first?.show(completion: increase) + showcaseArray.first?.show(hasShadow: hasShadow, completion: increase) } func increase() -> Void { self.currentCase += 1