Skip to content

Commit

Permalink
CASecureTextField
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Oct 30, 2023
1 parent bb896ca commit c7a4b85
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -16,6 +16,7 @@
public typealias CATabBarController = UITabBarController
public typealias CAButton = UIButton
public typealias CATextField = UITextField
public typealias CASecureTextField = UITextField
public typealias CAImage = UIImage
public typealias CAScrollView = UIScrollView
public typealias CACollectionView = UICollectionView
Expand Down Expand Up @@ -71,6 +72,7 @@
public typealias CATabBarController = NSTabViewController
public typealias CAButton = NSButton
public typealias CATextField = NSTextField
public typealias CASecureTextField = NSSecureTextField
public typealias CAImage = NSImage
public typealias CAScrollView = NSScrollView
public typealias CACollectionView = NSCollectionView
Expand Down
2 changes: 2 additions & 0 deletions Tests/CommonAppleKitTests/CommonAppleKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ private final class ViewA: CAView {

addSubview(CALabel())
addSubview(CATextField())
addSubview(CASecureTextField())
#if canImport(AppKit)
layer?.backgroundColor = CAColor.red.cgColor
#elseif canImport(UIKit)
Expand Down Expand Up @@ -61,6 +62,7 @@ final class CommonAppleKitTests: XCTestCase {

XCTAssertTrue(view.subviews.contains { $0 is CALabel })
XCTAssertTrue(view.subviews.contains { $0 is CATextField })
XCTAssertTrue(view.subviews.contains { $0 is CASecureTextField })
}

func testCollectionView() {
Expand Down

0 comments on commit c7a4b85

Please sign in to comment.