Skip to content

Commit

Permalink
CAView
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Oct 19, 2023
1 parent c0b0483 commit 9b1d4d4
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -9,6 +9,7 @@
#if canImport(UIKit)
import UIKit

public typealias CAView = UIView
public typealias CAViewController = UIViewController
public typealias CAApplicationDelegate = UIApplicationDelegate
public typealias CAAppDelegateBaseClass = UIResponder
Expand Down Expand Up @@ -48,6 +49,7 @@
#elseif canImport(AppKit)
import AppKit

public typealias CAView = NSView
public typealias CAViewController = NSViewController
public typealias CAApplicationDelegate = NSApplicationDelegate
public typealias CAAppDelegateBaseClass = NSObject
Expand Down
4 changes: 4 additions & 0 deletions Tests/CommonAppleKitTests/CommonAppleKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ extension CommonAppleKitTests: CACollectionViewDataSource {
func collectionView(_ collectionView: CACollectionView, itemForRepresentedObjectAt indexPath: IndexPath) -> CACollectionViewCell {
fatalError()
}

func collectionView(_: CACollectionView, willDisplay item: CACollectionViewCell, forRepresentedObjectAt _: IndexPath) {

}
#endif
}

Expand Down

0 comments on commit 9b1d4d4

Please sign in to comment.