feat(character): 본인인증 하지 않은 유저가 캐릭터 상세보기로 들어갈 때 본인인증 팝업 띄움
This commit is contained in:
@@ -15,6 +15,7 @@ struct SodaDialog: View {
|
||||
let confirmButtonAction: () -> Void
|
||||
let cancelButtonTitle: String
|
||||
let cancelButtonAction: () -> Void
|
||||
let textAlignment: TextAlignment
|
||||
|
||||
init(
|
||||
title: String,
|
||||
@@ -22,7 +23,8 @@ struct SodaDialog: View {
|
||||
confirmButtonTitle: String,
|
||||
confirmButtonAction: @escaping () -> Void,
|
||||
cancelButtonTitle: String = "",
|
||||
cancelButtonAction: @escaping () -> Void = {}
|
||||
cancelButtonAction: @escaping () -> Void = {},
|
||||
textAlignment: TextAlignment = .leading
|
||||
) {
|
||||
self.title = title
|
||||
self.desc = desc
|
||||
@@ -30,6 +32,7 @@ struct SodaDialog: View {
|
||||
self.confirmButtonAction = confirmButtonAction
|
||||
self.cancelButtonTitle = cancelButtonTitle
|
||||
self.cancelButtonAction = cancelButtonAction
|
||||
self.textAlignment = textAlignment
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
@@ -48,7 +51,7 @@ struct SodaDialog: View {
|
||||
Text(desc)
|
||||
.font(.custom(Font.medium.rawValue, size: 15))
|
||||
.foregroundColor(Color.graybb)
|
||||
.multilineTextAlignment(.leading)
|
||||
.multilineTextAlignment(textAlignment)
|
||||
.padding(.top, 12)
|
||||
.padding(.horizontal, 13.3)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
|
||||
Reference in New Issue
Block a user