We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26856b4 + f08b452 commit ea12daeCopy full SHA for ea12dae
iOSDropDown/Classes/iOSDropDown.swift
@@ -530,7 +530,16 @@ extension UIView {
530
layer.shouldRasterize = true
531
layer.rasterizationScale = scale ? UIScreen.main.scale : 1
532
}
533
-
+
534
+ func viewBorder(borderColor : UIColor, borderWidth : CGFloat?) {
535
+ self.layer.borderColor = borderColor.cgColor
536
+ if let borderWidth_ = borderWidth {
537
+ self.layer.borderWidth = borderWidth_
538
+ } else {
539
+ self.layer.borderWidth = 1.0
540
+ }
541
542
543
var parentViewController: UIViewController? {
544
var parentResponder: UIResponder? = self
545
while parentResponder != nil {
0 commit comments