mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-16 13:20:19 +00:00
37 lines
969 B
Swift
37 lines
969 B
Swift
//
|
|
// BadgesRedeemCodeView.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by spaced4ndy on 28.07.2026.
|
|
// Copyright © 2026 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
import SimpleXChat
|
|
|
|
// TODO [badges]: implement input field, server verification and success/failure states when the redeem API is defined.
|
|
struct BadgesRedeemCodeView: View {
|
|
@EnvironmentObject var theme: AppTheme
|
|
|
|
var body: some View {
|
|
VStack(alignment: .leading) {
|
|
Text("Redeem badge code")
|
|
.font(.largeTitle)
|
|
.bold()
|
|
.foregroundColor(theme.colors.primary)
|
|
.padding(.top, 8)
|
|
Spacer()
|
|
}
|
|
.padding(.horizontal, 25)
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
|
|
}
|
|
}
|
|
|
|
struct BadgesRedeemCodeView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
NavigationView {
|
|
BadgesRedeemCodeView()
|
|
}
|
|
}
|
|
}
|