We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36e8f4f commit c444831Copy full SHA for c444831
Tests/UICoreTests/ViewControllerTests.swift
@@ -38,6 +38,22 @@ final class ViewControllerTests: XCTestCase {
38
39
XCTAssertEqual(sut.title, "Title")
40
}
41
+
42
+ func testValueOfDisablesAutomaticKeyboardDismissal() {
43
+ let sut = MockViewController()
44
45
+ sut.modalPresentationStyleGetter = {
46
+ return .automatic
47
+ }
48
49
+ XCTAssertFalse(sut.disablesAutomaticKeyboardDismissal)
50
51
52
+ return .formSheet
53
54
55
+ XCTAssertTrue(sut.disablesAutomaticKeyboardDismissal)
56
57
58
59
final class MockViewController: ViewController {
0 commit comments