22 lines
570 B
Swift
22 lines
570 B
Swift
import SwiftUI
|
|
|
|
struct CreatorChannelFloatingIconButton: View {
|
|
let imageName: String
|
|
let backgroundColor: Color
|
|
let accessibilityLabel: String
|
|
let action: () -> Void
|
|
|
|
var body: some View {
|
|
Button(action: action) {
|
|
Image(imageName)
|
|
.resizable()
|
|
.frame(width: 38, height: 38)
|
|
.frame(width: 66, height: 66)
|
|
.background(backgroundColor)
|
|
.clipShape(Circle())
|
|
}
|
|
.accessibilityLabel(accessibilityLabel)
|
|
.buttonStyle(.plain)
|
|
}
|
|
}
|