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

@ -310,9 +310,11 @@ struct FortuneWheelView: View {
let strings = segments[index].segmentLabel(.short)
ForEach(strings, id: \.self) { string in
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)))
.foregroundColor(.white)
.position(arcPosition(index: index, radius: radius))

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

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

Loading…
Cancel
Save