Skip to content

Commit b700ff8

Browse files
committed
Add showShadow param for start sequence
1 parent e5653e3 commit b700ff8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/MaterialShowcase/MaterialShowcase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ extension MaterialShowcase {
216216
}
217217

218218
/// Shows it over current screen after completing setup process
219-
@objc public func show(animated: Bool = true,hasShadow: Bool = true, hasSkipButton: Bool = false, completion handler: (()-> Void)?) {
219+
@objc public func show(animated: Bool = true, hasShadow: Bool = true, hasSkipButton: Bool = false, completion handler: (()-> Void)?) {
220220
initViews()
221221
alpha = 0.0
222222
containerView.addSubview(self)

Sources/MaterialShowcase/MaterialShowcaseSequence.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public class MaterialShowcaseSequence {
2020
showcaseArray.append(showcase)
2121
return self
2222
}
23-
public func start() {
23+
public func start(hasShadow: Bool = true) {
2424
guard !getUserState(key: self.key) else {
2525
return
2626
}
27-
showcaseArray.first?.show(completion: increase)
27+
showcaseArray.first?.show(hasShadow: hasShadow, completion: increase)
2828
}
2929
func increase() -> Void {
3030
self.currentCase += 1

0 commit comments

Comments
 (0)