Skip to content

Commit

Permalink
CAEdgeInsets
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Jan 21, 2024
1 parent 754165f commit 363c384
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/CommonAppleKit/CommonAppleKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions Tests/CommonAppleKitTests/CommonAppleKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 363c384

Please sign in to comment.