Add Sheet

Bottom sheet with text input field, Cancel and Continue buttons, presented as a medium detent sheet

Free
Free with a ShipSwift account.

Copies a short instruction with your private download link. Paste it into your agent: it downloads the whole skill (the source code, the setup steps and the mistakes we already made for you) and builds the screen.

Works with

+70

What it does

Bottom sheet with a text input field, Cancel and Continue buttons. Presented as a .medium detent sheet for collecting user input (e.g. purpose, wish, notes).

Requires: SWButtonStyle (.swPrimary / .swSecondary) from ShipSwift's SWUtil — included below under SWButtonStyle (from SWUtil).

What you get

  • ✓163 lines of source code, ready to paste
  • ✓Source Code
  • ✓Usage
componentinputsheettextfieldformSwiftUI

Usage

@State private var showSheet = false

Button("Add Item") { showSheet = true }
.sheet(isPresented: $showSheet) {
    SWAddSheet(isPresented: $showSheet) { text in
        print("User entered: \(text)")
    }
}

// Custom title and placeholder text
SWAddSheet(
    isPresented: $showSheet,
    title: "Your Wish",
    placeHolderText: "Enter your wish...",
    minLines: 3
) { text in
    handleInput(text)
}