AcaMate_iOS/AcaMate/1. View/12. Main/125. Etc/EtcView.swift
2025-02-14 17:51:08 +09:00

54 lines
1.5 KiB
Swift

//
// EtcView.swift
// AcaMate
//
// Created by TAnine on 2/11/25.
//
import SwiftUI
struct EtcView: View {
@StateObject private var topVM = TopViewModel()
@State private var scrollOffset: CGPoint = .zero
@Binding var myType: UserType
var body: some View {
VStack(spacing: 0) {
TopView(topVM: topVM)
OffsetObservableScrollView(showsIndicators: false, scrollOffset: $scrollOffset) { proxy in
VStack(spacing: 24) {
UserInfoView(userData: SummaryUser(profile: Image(.Icon.face), name: "이름", userID: "abcdefg", email: "abcdefg@gmail.com"))
UserSettingView(myType: myType)
CsCenterView()
TsCsView()
AppInfoView()
}
.padding(24)
DevInfoView()
// Rectangle()
// .foregroundStyle(Color(.Disable.normal))
// .frame(height: 500)
// .frame(maxWidth: .infinity)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
.onAppear {
topVM.titleName = ""
topVM.setLeftBtn(size: CGPoint(x: 40, y: 40), action: leftAct)
topVM.setRightBtn(size: CGPoint(x: 40, y: 40), action: rightAct)
}
}
func leftAct() {
printLog("왼쪽 버튼 클릭")
}
func rightAct() {
printLog("오른쪽 버튼 클릭")
}
}