
Pill Search
From syxUI — written for both platforms, not translated between them.
A rounded pill search bar.
Inputs · SwiftUI · iOS 17
- inputs
- swiftui
The actual source
SearchBarPill.swift
// Pill Search · syxUI · https://syxui.dev/components/search-pill
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
struct SearchBarPill: View { var body: some View { HStack(spacing: 8) { Image(systemName: "magnifyingglass").font(.system(size: 15)).foregroundStyle(.secondary); Text("Search anything").font(.system(size: 16)).foregroundStyle(.secondary); Spacer() }.padding(.horizontal, 14).padding(.vertical, 11).background(Color.primary.opacity(0.06), in: Capsule()).frame(width: 320) } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


