Welcome to SwiftUI Recipes
  • Recipes
  • Contact Us
  • Online Cookbook

SwiftUI can be confusing and frustrating, so this site gathers no-nonsense, straight-to-the-point recipes on how to get sh*t done!
Our cookbok has over a 100 recipes and it grows every week. Check out what works and what doesn't (even if the docs say it should), how to work around shortcomings and generally waste less time on SwiftUI!

12 Sep 2020

SwiftUI Alert with TextField

swiftui alert textfield alertdialog uialertcontroller text dialog

Reading time: 2 min

This recipe shows how to add a TextField to a SwiftUI alert dialog.

Continue Reading...

Search our recipes

Check out the companion apps!

Our free companion app and XCode Extension brings 100+ SwiftUI recipes right at your fingertips! Get a preview of it in the Online Companion.

Have a recipe for us?

Get in touch and let's grow the cookbook together!

Popular Tags

swiftui list image scrollview text style textfield charts navigation navigationbar styling vstack alert animation dialog keyboard button gesture async layout shape combine hstack progressview color progress background scrollviewreader refreshable sheet

Recent Posts

  • SwiftUI Accordion View
  • SwiftUI Limit Text Length in TextField
  • Paste Image in SwiftUI with PasteButton
  • SwiftUI Sticky Header / Footer in VStack or HStack
  • SwiftUI Drag To Reorder ForEach / Stack / Grid
  • SwiftUI Drag & Drop

Syndicate

Atom 1.0 RSS

SwiftUI Recipes © 2020-2022 by Gordan Glavaš. SwiftUI logo © Apple Inc.

  • Recipes
  • Contact Us
  • Online Cookbook