Skip to content

Instantly share code, notes, and snippets.

import XCTest
var myExpectation: XCTestExpectation? = nil
class Label: UILabel {
override func invalidateIntrinsicContentSize() {
super.invalidateIntrinsicContentSize()
myExpectation = XCTestExpectation(description: "\(String(describing: text))")
}