Skip to content
Icon Buttons preview
Rendered from the SwiftUI source on this page.

Icon Buttons

From syxUI — written for both platforms, not translated between them.

A self-contained icon buttons — SwiftUI, styled from system tokens.

Buttons · SwiftUI · iOS 17

  • buttons
  • swiftui

The actual source

IconButtonRow.swift
// Icon Buttons · syxUI · https://syxui.dev/components/button-icons
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

// Icon button row
struct IconButtonRow: View {
    var body: some View {
        HStack(spacing: 14) {
            ForEach(["heart", "bookmark", "square.and.arrow.up", "ellipsis"], id: \.self) { icon in
                Image(systemName: icon).font(.system(size: 18, weight: .medium)).foregroundStyle(.primary)
                    .frame(width: 52, height: 52).background(Color.primary.opacity(0.06), in: Circle())
                    .overlay(Circle().stroke(Color.primary.opacity(0.06), lineWidth: 1))
            }
        }
    }
}
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17