BaseCollectionViewCell.swift 906 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*****************************************************************************
  2. * BaseCollectionViewCell.Swift
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2018 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Carola Nitz <nitz.carola # googlemail.com>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. import Foundation
  13. class BaseCollectionViewCell: UICollectionViewCell {
  14. static var defaultReuseIdentifier: String {
  15. return NSStringFromClass(self)
  16. }
  17. class var nibName: String {
  18. return String(describing:self)
  19. }
  20. var media: VLCMLObject?
  21. class func cellSizeForWidth(_ width: CGFloat) -> CGSize {
  22. return CGSize.zero
  23. }
  24. class var cellPadding: CGFloat {
  25. return 0
  26. }
  27. }