fix crashes

club_update
Razmig Sarkissian 1 year ago
parent fb8b089a5a
commit 5bc0acfd56
  1. 4
      PadelClub.xcodeproj/project.pbxproj
  2. 4
      PadelClub/Views/Components/FortuneWheelView.swift
  3. 3
      PadelClub/Views/Match/Components/PlayerBlockView.swift
  4. 2
      PadelClub/Views/Tournament/Screen/InscriptionManagerView.swift

@ -1902,7 +1902,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = PadelClub/PadelClub.entitlements; CODE_SIGN_ENTITLEMENTS = PadelClub/PadelClub.entitlements;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 86; CURRENT_PROJECT_VERSION = 87;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES; DEFINES_MODULE = YES;
DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\"";
@ -1946,7 +1946,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = PadelClub/PadelClub.entitlements; CODE_SIGN_ENTITLEMENTS = PadelClub/PadelClub.entitlements;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 86; CURRENT_PROJECT_VERSION = 87;
DEFINES_MODULE = YES; DEFINES_MODULE = YES;
DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\""; DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\"";
DEVELOPMENT_TEAM = BQ3Y44M3Q6; DEVELOPMENT_TEAM = BQ3Y44M3Q6;

@ -310,9 +310,11 @@ struct FortuneWheelView: View {
let strings = segments[index].segmentLabel(.short) let strings = segments[index].segmentLabel(.short)
ForEach(strings, id: \.self) { string in ForEach(strings, id: \.self) { string in
Text(string).bold() Text(string).bold()
.font(.caption)
} }
} }
.padding(.trailing, 40) .offset(x: -20)
.padding(40)
.rotationEffect(.degrees(Double(index) * (360 / Double(segments.count)) + (360 / Double(segments.count) / 2))) .rotationEffect(.degrees(Double(index) * (360 / Double(segments.count)) + (360 / Double(segments.count) / 2)))
.foregroundColor(.white) .foregroundColor(.white)
.position(arcPosition(index: index, radius: radius)) .position(arcPosition(index: index, radius: radius))

@ -86,8 +86,7 @@ struct PlayerBlockView: View {
if hideScore == false && scores.isEmpty == false { if hideScore == false && scores.isEmpty == false {
ForEach(scores.indices, id: \.self) { index in ForEach(scores.indices, id: \.self) { index in
let string = scores[index] if let string = scores[safe: index], string.isEmpty == false {
if string.isEmpty == false {
if width == 1 { if width == 1 {
Divider() Divider()
} else { } else {

@ -1136,7 +1136,7 @@ struct InscriptionManagerView: View {
private func _teamMenuOptionView(_ team: TeamRegistration) -> some View { private func _teamMenuOptionView(_ team: TeamRegistration) -> some View {
Menu { Menu {
Section { Section {
MenuWarningView(tournament: team.tournamentObject()!, teams: [team], contactType: $contactType) MenuWarningView(tournament: tournament, teams: [team], contactType: $contactType)
//Divider() //Divider()
Button("Copier") { Button("Copier") {
let pasteboard = UIPasteboard.general let pasteboard = UIPasteboard.general

Loading…
Cancel
Save