Skip to content

Commit 4314a64

Browse files
committed
Update SPInsetsTextField.swift
1 parent 04c19f8 commit 4314a64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SparrowKit/UIKit/Classes/SPInsetsTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ open class SPInsetsTextField: SPTextField {
3131

3232
Have effect even for clear button position.
3333
*/
34-
open var insets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
34+
open var insets = UIEdgeInsets(top: .zero, left: .zero, bottom: .zero, right: .zero)
3535

3636
open override func textRect(forBounds bounds: CGRect) -> CGRect {
3737
return bounds.inset(by: insets)

0 commit comments

Comments
 (0)