
Dropdown Select
From syxUI — written for both platforms, not translated between them.
A closed dropdown select field.
Navigation · SwiftUI · iOS 17
- navigation
- swiftui
The actual source
DropdownClosed.swift
// Dropdown Select · syxUI · https://syxui.dev/components/menu-dropdown
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
struct DropdownClosed: View { var body: some View { VStack(alignment: .leading, spacing: 6) { Text("Country").font(.system(size: 13, weight: .medium)); HStack { Text("United States").font(.system(size: 16)); Spacer(); Image(systemName: "chevron.up.chevron.down").font(.system(size: 13)).foregroundStyle(.secondary) }.padding(.horizontal, 14).padding(.vertical, 12).overlay(RoundedRectangle(cornerRadius: 12, style: .continuous).stroke(Color.primary.opacity(0.15), lineWidth: 1)) }.frame(width: 300) } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


