Skip to content

Commit

Permalink
CAKeyboardType
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Mar 17, 2024
1 parent 90d7be0 commit 0152b0f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sources/CommonAppleKit/CATextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ public class CATextField: CATextFieldBaseClass {
return super.placeholderRect(forBounds: bounds)
}
}
#elseif canImport(AppKit)
public var keyboardType: CAKeyboardType {
get {
.emailAddress
}

set {

}
}
#endif
}

Expand Down
10 changes: 10 additions & 0 deletions Sources/CommonAppleKit/CommonAppleKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@
}
}
#elseif canImport(AppKit)
public enum CAKeyboardType {
case emailAddress
}

public enum CAUserInterfaceStyle {
case dark
case light
Expand Down Expand Up @@ -203,6 +207,12 @@
} ?? []
}
}

var selectedViewController: CAViewController? {
get {
viewControllers?[selectedTabViewItemIndex]
}
}
}

public extension CACollectionView {
Expand Down

0 comments on commit 0152b0f

Please sign in to comment.