Slide 38
Slide 38 text
UIViewController ViewͷϑϨʔϜͱώΤϥϧΩʔൺֱ
assertSnapshot(matching: vc, as: .recursiveDescription)
assertSnapshot(matching: vc, as: .recursiveDescription(on: .iPhoneSe))
assertSnapshot(matching: vc, as: .recursiveDescription(on: .iPhoneSe(.landscape)))
assertSnapshot(matching: vc, as: .recursiveDescription(on: .iPhoneX))
assertSnapshot(matching: vc, as: .recursiveDescription(on: .iPadMini(.portrait)))
// [ AF LU ] h=--- v=--- NSButton "Push Me" f=(0,0,77,32) b=(-)
// [ A LU ] h=--- v=--- NSButtonBezelView f=(0,0,77,32) b=(-)
// [ AF LU ] h=--- v=--- NSButtonTextField "Push Me" f=(10,6,57,16) b=(-)
// A=autoresizesSubviews, C=canDrawConcurrently, D=needsDisplay, F=flipped, G=gstate,...
assertSnapshot(matching: vc, as: .hierarchy)
// , state: appeared, view:
// | , state: appeared, view:
// | | , state: appeared, view: <_UIPageViewControllerContentView>
// | | | , state: appeared, view:
// | , state: disappeared, view: not in the window
// | | , state: disappeared, view: (view not loaded)