Last active
March 23, 2018 09:19
-
-
Save KaneCheshire/8f02935aeb7e0ee385945124d4683bbe to your computer and use it in GitHub Desktop.
This file contains hidden or 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
func test_extraSmallDynamicType() throws { | |
let view = ExampleView.loadFromNib() | |
let viewModel = ExampleViewModel(title: "A short title", detail: "A subtitle", message: "This is the message!") | |
let traitCollection = UITraitCollection(preferredContentSizeCategory: .extraSmall) | |
view.configure(with: viewModel, traitCollection: traitCollection) | |
try verify(view, layoutStyle: .dynamicHeight(fixedWidth: 320)) | |
} | |
func test_accessibilityExtraExtraExtraLarge() throws { | |
let view = ExampleView.loadFromNib() | |
let viewModel = ExampleViewModel(title: "A short title", detail: "A subtitle", message: "This is the message!") | |
let traitCollection = UITraitCollection(preferredContentSizeCategory: .accessibilityExtraExtraExtraLarge) | |
view.configure(with: viewModel, traitCollection: traitCollection) | |
try verify(view, layoutStyle: .dynamicHeight(fixedWidth: 320)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment