Files
sodalive-ios/SodaLive/Sources/V2/CreatorChannel/Donation/Components/CreatorChannelDonationFloatingButton.swift

40 lines
1.1 KiB
Swift

import SwiftUI
struct CreatorChannelDonationFloatingButton: View {
let action: () -> Void
var body: some View {
VStack {
Spacer()
HStack {
Spacer()
Button(action: action) {
Image("ic_new_donation")
.resizable()
.renderingMode(.template)
.foregroundColor(.white)
.scaledToFit()
.frame(width: 32, height: 32)
.frame(width: 66, height: 66)
.background(Color.soda400)
.clipShape(Capsule())
}
.buttonStyle(.plain)
.padding(.trailing, SodaSpacing.s14)
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .bottomTrailing)
}
}
struct CreatorChannelDonationFloatingButton_Previews: PreviewProvider {
static var previews: some View {
ZStack {
Color.black.ignoresSafeArea()
CreatorChannelDonationFloatingButton(action: {})
}
}
}