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.
20 lines
454 B
20 lines
454 B
//
|
|
// tournamentSeedEditing.swift
|
|
// PadelClub
|
|
//
|
|
// Created by Razmig Sarkissian on 31/03/2024.
|
|
//
|
|
|
|
import Foundation
|
|
import SwiftUI
|
|
|
|
private struct TournamentSeedEditing: EnvironmentKey {
|
|
static let defaultValue: Binding<Bool> = .constant(false)
|
|
}
|
|
|
|
extension EnvironmentValues {
|
|
var isEditingTournamentSeed: Binding<Bool> {
|
|
get { self[TournamentSeedEditing.self] }
|
|
set { self[TournamentSeedEditing.self] = newValue }
|
|
}
|
|
}
|
|
|