Skip to content

Instantly share code, notes, and snippets.

@Scior
Created January 20, 2022 12:18
Show Gist options
  • Save Scior/1bceb02bfdcbab77a04e47e223bc173a to your computer and use it in GitHub Desktop.
Save Scior/1bceb02bfdcbab77a04e47e223bc173a to your computer and use it in GitHub Desktop.
#if DEBUG
import UIKit
extension UITableViewCell {
@available(*, deprecated, message: "Subviews should be added to the contentView")
open override func addSubview(_ view: UIView) {
super.addSubview(view)
}
}
extension UICollectionViewCell {
@available(*, deprecated, message: "Subviews should be added to the contentView")
open override func addSubview(_ view: UIView) {
super.addSubview(view)
}
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment