Skip to content

Commit

Permalink
Add showShadow param for start sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
dungPhamAlo committed May 17, 2022
1 parent e5653e3 commit b700ff8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/MaterialShowcase/MaterialShowcase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions Sources/MaterialShowcase/MaterialShowcaseSequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b700ff8

Please sign in to comment.