CustomTF(sfIcon: "plus.circle", hint: "입금", value: $inputDeposit)
.disabled(!inputWithdrawal.isEmpty)
.keyboardType(.numberPad)
.onChange(of: inputDeposit) { _, newValue in
deposit = Int(newValue) ?? 0
}
CustomTF(sfIcon: "minus.circle", hint: "출금", value: $inputWithdrawal)
.disabled(!inputDeposit.isEmpty)
.keyboardType(.numberPad)
.onChange(of: inputWithdrawal) { _, newValue in
withdrawal = Int(newValue) ?? 0
}
영수증 작성시 입금과 출금 금액을 모두 적어서 영수증 작성을 하면 저장에 실패하고 로그아웃 하기 전까지 영수증 작성을 못하는 오류가 있었다. 그 문제를 입금과 출금 내역을 동시에 작성할 수 없게 .disable을 사용해서 사용자의 입력을 막는 방식으로 해결했다.
public struct ContentView: View {
public var body: some View {
// MaintenanceView()
MainTabView()
// IntroView()
}
}
#Preview {
ContentView()
}
점검이 끝나서 정상적으로 서버가 돌아간다고 서버팀에게 연락을 받아서 서버 점검을 사용자들에게 알리던 MaintenanceView를 주석처리하고 기능에 접근할 수 있는 MainTabView 주석을 풀어놓았다.
버그 수정을 했으므로 버전을 1.0.2, 빌드를 5로 올려서 다시 archive를 통해 배포를 진행했다.