
Play Button
From syxUI — written for both platforms, not translated between them.
Circular play and pause media buttons.
Buttons · SwiftUI · iOS 17
- buttons
- swiftui
The actual source
PlayButtonCard.swift
// Play Button · syxUI · https://syxui.dev/components/btn-play
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
let btnBlue = Color(red: 0.0, green: 0.47, blue: 1.0)
// Play / pause media buttons
struct PlayButtonCard: View {
var body: some View {
HStack(spacing: 16) {
Image(systemName: "play.fill").font(.system(size: 20)).foregroundStyle(.white).frame(width: 56, height: 56).background(btnBlue, in: Circle())
Image(systemName: "pause.fill").font(.system(size: 20)).foregroundStyle(.primary).frame(width: 56, height: 56).background(Color.primary.opacity(0.08), in: Circle())
}
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


