---
title: "Discussion on \"How to dismiss the keyboard in SwiftUI\" | Hashnode"
description: "Discussion on \"How to dismiss the keyboard in SwiftUI\". When dealing with forms and more, it is likely that you would encounter a scenario where you would want to dismiss the keyboard programmatically ie. on click of \"Submit\" or \"Next\" button. Without further ado, let's explore a couple of ways to dismiss..."
url: "https://hashnode.com/posts/how-to-dismiss-the-keyboard-in-swiftui/63f4ce38817f42b307f46461"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to dismiss the keyboard in SwiftUI](https://swiftanytime.hashnode.dev/how-to-dismiss-the-keyboard-in-swiftui?utm_source=hashnode&utm_medium=feed)

When dealing with forms and more, it is likely that you would encounter a scenario where you would want to dismiss the keyboard programmatically ie. on click of "Submit" or "Next" button. Without further ado, let's explore a couple of ways to dismiss...

Feb 21, 2023 · 3 min read · swiftanytime.hashnode.dev  
Updated Jul 25, 2024  
Read the article

-   [#ios-app-development](https://hashnode.com/tag/ios-app-development)
-   [#swiftui](https://hashnode.com/tag/swiftui)

## Written by

[Swift Anytime](https://hashnode.com/@swiftanytime)

@swiftanytime · India

  
[View profile](https://hashnode.com/@swiftanytime)

Learn iOS development the way you love❤️

Swift Anytime is a learning platform that helps iOS developers across various experience levels enhance their skills, expand their knowledge and prepare for technical interviews. In addition, Swift Anytime is one of the largest active iOS communities in India.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
