
Info Rows
From syxUI — written for both platforms, not translated between them.
Read-only info rows with values.
Cards · SwiftUI · iOS 17
- cards
- swiftui
The actual source
InfoRow.swift
// Info Rows · syxUI · https://syxui.dev/components/list-info
// 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)
}
}
// Info row
struct InfoRow: View {
var body: some View {
VStack(spacing: 0) {
HStack { Text("Version").font(.system(size: 15)); Spacer(); Text("2.4.1").font(.system(size: 15)).foregroundStyle(.secondary) }.padding(.vertical, 11)
Divider()
HStack { Text("Storage").font(.system(size: 15)); Spacer(); Text("128 MB").font(.system(size: 15)).foregroundStyle(.secondary); Image(systemName: "info.circle").font(.system(size: 14)).foregroundStyle(.secondary).padding(.leading, 4) }.padding(.vertical, 11)
}.formaCard(14).frame(width: 320)
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


