Skip to content

Commit

Permalink
making overlay color customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
cookeri6 committed Sep 6, 2019
1 parent 87c490b commit b6693bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DrawerView/DrawerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ private struct ChildScrollViewInfo {

fileprivate var childScrollViews: [ChildScrollViewInfo] = []

private var overlay: Overlay?
var overlay: Overlay?

var overlayBackgroundColor: UIColor = UIColor.black

private let borderView = UIView()

Expand Down Expand Up @@ -974,7 +976,7 @@ private struct ChildScrollViewInfo {
}

private func updateOverlayVisuals(_ overlay: Overlay?) {
overlay?.backgroundColor = UIColor.black
overlay?.backgroundColor = self.overlayBackgroundColor
overlay?.cutCornerSize = self.cornerRadius
}

Expand Down

0 comments on commit b6693bf

Please sign in to comment.