correct a problem

dev_views_stats
Rayhân HASSOU 11 months ago
parent 91f4157c10
commit a8e37fa1f6

@ -44,6 +44,7 @@ struct PlayerRow: View {
} }
.sheet(isPresented: $showDetailView) { .sheet(isPresented: $showDetailView) {
PlayerStatView(player: player) PlayerStatView(player: player)
.presentationDetents([.medium, .large])
} }
} }
.padding() .padding()

@ -20,6 +20,7 @@ struct PlayerStatView: View {
.padding(.top, 10) .padding(.top, 10)
} else { } else {
Image(systemName: "person.circle.fill") Image(systemName: "person.circle.fill")
.resizable() .resizable()
.frame(width: 100, height: 100) .frame(width: 100, height: 100)
.clipShape(Circle()) .clipShape(Circle())

@ -13,7 +13,7 @@ struct MainMenuView: View {
@State private var currentImage: String? @State private var currentImage: String?
@State private var timer: Timer? @State private var timer: Timer?
@State private var showImage = false @State private var showImage = false
let images: [String] = [AppImages.SemiLion, AppImages.SemiDog, AppImages.SemiRat, AppImages.SemiWolf, AppImages.SemiLeopard, AppImages.SemiElephant, AppImages.SemiCat] // Add your image names here let images: [String] = [AppImages.SemiLion, AppImages.SemiDog, AppImages.SemiRat, AppImages.SemiWolf, AppImages.SemiLeopard, AppImages.SemiElephant, AppImages.SemiCat]
var body: some View { var body: some View {
NavigationView { NavigationView {

Loading…
Cancel
Save