Skip to content

Commit

Permalink
Add possibility to mask only certain corners
Browse files Browse the repository at this point in the history
  • Loading branch information
iwb-kevin-hirsch committed Oct 15, 2018
1 parent 72f689d commit 4f7ab1b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions DropDown/src/DropDown.swift
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,18 @@ public final class DropDown: UIView {
reloadAllComponents()
}

/**
The masked corners of DropDown.
Changing the masked corners automatically reloads the drop down.
*/
@available(iOS 11.0, *)
@objc public dynamic func setupMaskedCorners(_ cornerMask: CACornerMask) {
tableViewContainer.layer.maskedCorners = cornerMask
tableView.layer.maskedCorners = cornerMask
reloadAllComponents()
}

/**
The color of the shadow.
Expand Down

0 comments on commit 4f7ab1b

Please sign in to comment.