Skip to content

Commit 2304815

Browse files
committed
Create UIScreenExtension.swift
1 parent 8282e6e commit 2304815

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import UIKit
2+
3+
public extension UIScreen {
4+
5+
var displayCornerRadius: CGFloat {
6+
guard let cornerRadius = self.value(forKey: "_displayCornerRadius") as? CGFloat else {
7+
return .zero
8+
}
9+
return cornerRadius
10+
}
11+
}

0 commit comments

Comments
 (0)