Skip to content

Commit

Permalink
๐Ÿ’„ :: [#74] UserInfoList State ๋ณ€๊ฒฝ ๋ฒ„ํŠผ ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
Xixn2 committed Jan 4, 2025
1 parent 6bd041f commit 6e398ec
Showing 1 changed file with 79 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import SwiftUI
struct UserManagementView: View {
@Environment(\.dismiss) var dismiss
@State private var userInfoListName: String = "์‚ฌ์ „ ํ–‰์‚ฌ"
@State private var userInfoListButtonAction: Bool = false

var body: some View {
ZStack {
Expand All @@ -30,14 +31,90 @@ struct UserManagementView: View {
}

VStack(alignment: .leading, spacing: 0) {
Button {
userInfoListButtonAction.toggle()
} label: {
HStack(spacing: 10) {
Text("\(userInfoListName) ์ฐธ๊ฐ€์ž")
.expoFont(.body2B)
.foregroundStyle(.black)

ExpoIOSAsset.Assets.blackBottomButton.swiftUIImage
}
.padding(.leading, 16)
}

HStack(spacing: 10) {
Text("\(userInfoListName) ์ฐธ๊ฐ€์ž")
ExpoIOSAsset.Assets.warning.swiftUIImage
.padding(.leading, 16)

Text("์˜†์œผ๋กœ ๋„˜๊ฒจ์„œ ํ™•์ธํ•ด๋ณด์„ธ์š”")
.expoFont(.caption2R)
.expoColor(ExpoColor.gray300)

Spacer()

Rectangle()
.frame(width: 1, height: 14)
.expoColor(ExpoColor.gray100)


Spacer()

Text("์ฐธ๊ฐ€์ž ์ „์ฒด ์ธ์›")
.expoColor(ExpoColor.gray500)
.expoFont(.caption2R)

Text("100๋ช…")
.expoColor(ExpoColor.main)
.expoFont(.caption2R)
.padding(.trailing, 16)
}
.padding(.top, 13)

Spacer()
}
.sheet(isPresented: $userInfoListButtonAction) {
VStack(spacing: 0){
Button {
userInfoListName = "์‚ฌ์ „ ํ–‰์‚ฌ"
userInfoListButtonAction.toggle()
} label: {
Text("์‚ฌ์ „ ํ–‰์‚ฌ ์ฐธ๊ฐ€์ž")
.frame(maxWidth: .infinity, minHeight: 58)
.foregroundStyle(.black)
}

Button {
userInfoListName = "ํ˜„์žฅ ์‹ ์ฒญ"
userInfoListButtonAction.toggle()
} label: {
Text("ํ˜„์žฅ ์‹ ์ฒญ ์ฐธ๊ฐ€์ž")
.frame(maxWidth: .infinity, minHeight: 58)
.foregroundStyle(.black)
}

Button {
userInfoListName = "์‚ฌ์ „ ๊ต์› ์›์ˆ˜"
userInfoListButtonAction.toggle()
} label: {
Text("์‚ฌ์ „ ๊ต์› ์›์ˆ˜ ์ฐธ๊ฐ€์ž")
.frame(maxWidth: .infinity, minHeight: 58)
.foregroundStyle(.black)
}

Button {
userInfoListButtonAction.toggle()
} label: {
Text("์ทจ์†Œ")
.frame(maxWidth: .infinity, minHeight: 58)
.expoColor(ExpoColor.error)
}

Spacer()
}
.expoFont(.body2R)
.presentationDetents([.height(250)])
}
}
}

Expand Down

0 comments on commit 6e398ec

Please sign in to comment.