Skip to content

Commit 674adfe

Browse files
authored
Update SubmitFormViewController.swift
1 parent 328b930 commit 674adfe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

iOS/IssueTracker/IssueTracker/05.CustomUI/SubmitForm/SubmitFormViewController.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ extension SubmitFormViewController {
9696
self.view.endEditing(true)
9797
self.formViewEndPoint = nil
9898
let finalPos = formView.frame.origin.y + moveUpward
99-
UIView.animate(withDuration: 0.3) {
99+
100+
UIView.animate(withDuration: 0.3, animations: {
100101
self.formView.frame.origin.y = finalPos
101-
} completion: { _ in
102+
}, completion: { _ in
102103
self.formView.frame.origin.y = finalPos
103-
}
104+
})
104105

105106
self.moveUpward = 0
106107
}

0 commit comments

Comments
 (0)