You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
611 B
28 lines
611 B
//
|
|
// TournamentFieldsManagerView.swift
|
|
// PadelClub
|
|
//
|
|
// Created by Razmig Sarkissian on 22/03/2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct TournamentFieldsManagerView: View {
|
|
let localizedStringKey: String
|
|
@Binding var count: Int
|
|
|
|
var body: some View {
|
|
Stepper(value: $count, in: 1...1_000) {
|
|
LabeledContent {
|
|
Text(count.formatted())
|
|
} label: {
|
|
Text(localizedStringKey)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
TournamentFieldsManagerView(localizedStringKey: "test", count: .constant(2))
|
|
.environment(Tournament.mock())
|
|
}
|
|
|