Skip to content

Instantly share code, notes, and snippets.

@pallavtrivedi03
Created March 12, 2018 19:49
Show Gist options
  • Save pallavtrivedi03/7f099de5f1fa66dadcff7c2bc83a548d to your computer and use it in GitHub Desktop.
Save pallavtrivedi03/7f099de5f1fa66dadcff7c2bc83a548d to your computer and use it in GitHub Desktop.
import Cocoa
class CollectionViewItem: NSCollectionViewItem {
override func viewDidLoad() {
super.viewDidLoad()
view.wantsLayer = true
view.layer?.backgroundColor = NSColor.lightGray.cgColor
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment