Created
January 20, 2022 12:18
-
-
Save Scior/1bceb02bfdcbab77a04e47e223bc173a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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