
Search Loading
From syxUI — written for both platforms, not translated between them.
A searching / loading state.
Inputs · SwiftUI · iOS 17
- inputs
- swiftui
The actual source
SearchLoading.swift
// Search Loading · syxUI · https://syxui.dev/components/search-loading
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
struct SearchLoading: View {
var body: some View {
HStack(spacing: 8) { Circle().trim(from: 0, to: 0.7).stroke(.secondary, style: StrokeStyle(lineWidth: 2, lineCap: .round)).frame(width: 16, height: 16); Text("Searching…").font(.system(size: 16)).foregroundStyle(.secondary); Spacer() }.padding(.horizontal, 12).padding(.vertical, 11).background(Color.primary.opacity(0.06), in: RoundedRectangle(cornerRadius: 12, style: .continuous)).frame(width: 300)
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


