diff --git a/Sources/CommonAppleKit/CommonAppleKit.swift b/Sources/CommonAppleKit/CommonAppleKit.swift index 1a96880..1b55d67 100644 --- a/Sources/CommonAppleKit/CommonAppleKit.swift +++ b/Sources/CommonAppleKit/CommonAppleKit.swift @@ -37,6 +37,7 @@ public typealias CATraitCollection = UITraitCollection public typealias CAUserInterfaceStyle = UIUserInterfaceStyle public typealias CAFont = UIFont + public typealias CAEdgeInsets = UIEdgeInsets public extension CATextField { var stringValue: String { @@ -151,6 +152,7 @@ public typealias CALayoutGuide = NSLayoutGuide public typealias CADatePicker = NSDatePicker public typealias CAFont = NSFont + public typealias CAEdgeInsets = NSEdgeInsets public extension CATextField { var placeholder: String { diff --git a/Tests/CommonAppleKitTests/CommonAppleKitTests.swift b/Tests/CommonAppleKitTests/CommonAppleKitTests.swift index efc88d8..686b5d4 100644 --- a/Tests/CommonAppleKitTests/CommonAppleKitTests.swift +++ b/Tests/CommonAppleKitTests/CommonAppleKitTests.swift @@ -65,6 +65,7 @@ final class CommonAppleKitTests: XCTestCase { func testButton() { let button = CAButton() + button.contentEdgeInsets = CAEdgeInsets(top: 10, left: 20, bottom: 30, right: 40) let selector = #selector(Self.onButtonTap) button.addTargetForPrimaryActionTriggered(self, action: selector) let actions = button.actions(for: self)