Skip to content

Instantly share code, notes, and snippets.

View LayoutTests.swift
import XCTest
var myExpectation: XCTestExpectation? = nil
class Label: UILabel {
override func invalidateIntrinsicContentSize() {
super.invalidateIntrinsicContentSize()
myExpectation = XCTestExpectation(description: "\(String(describing: text))")
}
You can’t perform that action at this time.