FreeComponents
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'sSWUtil— 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)
}More in Components
- Alert Toast NotificationFreeGlobal toast-style alert overlay with preset styles (info, success, warning, error) and auto-dismiss
- Bullet Point TextFreeText label with a colored capsule bullet point indicator that accepts any View content via @ViewBuilder
- Cached ImageFreeAsyncImage drop-in with a memory + disk cache, so re-created views show remote images on the first frame instead of flashing the placeholder
- Floating LabelsFreeAnimated floating capsule labels that fade in and out at specified positions around an image
- Gradient DividerFreeHorizontal divider with a center-fade gradient effect (clear to color to clear)
- Image ThumbnailFreeReusable rounded image thumbnail with same-named ColorSet fallback — perfect for product cards, avatars, and cover images