Skip to content

Commit 8f85626

Browse files
committed
Added edge insets.
1 parent 324f9fe commit 8f85626

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import UIKit
2+
3+
public extension NSDirectionalEdgeInsets {
4+
5+
init(_ insets: UIEdgeInsets) {
6+
self.init(top: insets.top, leading: insets.left, bottom: insets.bottom, trailing: insets.right)
7+
}
8+
}

0 commit comments

Comments
 (0)