
Settings Rows
From syxUI — written for both platforms, not translated between them.
Grouped settings rows with colored icon tiles and chevrons.
Cards · SwiftUI · iOS 17
- cards
- swiftui
The actual source
SettingsIconRow.swift
// Settings Rows · syxUI · https://syxui.dev/components/list-settings-icon
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
extension View {
func formaCard(_ pad: CGFloat = 18) -> some View {
self.padding(pad)
.background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 20, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: 20, style: .continuous).stroke(Color.primary.opacity(0.06), lineWidth: 1))
.shadow(color: .black.opacity(0.05), radius: 14, x: 0, y: 6)
}
}
// Settings rows with colored icon tiles
struct SettingsIconRow: View {
let rows: [(String, Color, String, String)] = [("wifi", Color(red: 0.0, green: 0.47, blue: 1.0), "Network", "Download on any network"), ("arrow.down.circle.fill", Color(red: 0.55, green: 0.40, blue: 0.90), "Download quality", "SD · saves space"), ("bell.fill", Color(red: 0.98, green: 0.24, blue: 0.22), "Notifications", "Update preferences")]
var body: some View {
VStack(spacing: 0) {
ForEach(Array(rows.enumerated()), id: \.offset) { i, r in
HStack(spacing: 12) {
Image(systemName: r.0).font(.system(size: 15)).foregroundStyle(.white).frame(width: 30, height: 30).background(r.1, in: RoundedRectangle(cornerRadius: 7, style: .continuous))
VStack(alignment: .leading, spacing: 1) { Text(r.2).font(.system(size: 15)); Text(r.3).font(.system(size: 12)).foregroundStyle(.secondary) }
Spacer()
Image(systemName: "chevron.right").font(.system(size: 12, weight: .semibold)).foregroundStyle(.secondary.opacity(0.5))
}.padding(.vertical, 9)
if i < rows.count - 1 { Divider().padding(.leading, 42) }
}
}.formaCard(14).frame(width: 330)
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


