feat(creator): 후원 탭 UI 조각을 추가한다
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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: {})
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user