Post

Replies

Boosts

Views

Activity

Switfui: change color in 'menu'
in swiftui how can I change the text color when use "menu"? I mean I need that each text in pippo will be .red color as you can see in the code, but .foregroundColor(.red) do not works thanks var pippo = ["AAA","BBB","CCC", "DDD"] var body: some View { Menu { ForEach(pippo, id: \.self) { item in Button { //categoriaSelezionata = categoria } label: { Text(item) .foregroundColor(.red) } } } label: { HStack { Text("Select Theme") .multilineTextAlignment(.center) Image(systemName: "chevron.down") .foregroundColor(.gray) } .frame(maxWidth: .infinity) .padding(6) } Menu { ForEach(pippo, id: \.self) { item in Button(item) { // azione } .foregroundColor(.red) } } label: { HStack { Text("Select Theme") Image(systemName: "chevron.down") .foregroundColor(.gray) } .frame(maxWidth: .infinity) .padding(6) } .menuStyle(BorderlessButtonMenuStyle()) // Prova diversi stili .menuIndicator(.hidden) // Nasconde l'indicatore di default }
Topic: UI Frameworks SubTopic: SwiftUI
2
0
88
Nov ’25
External drive is greyed out in Time machine options to exclude from backup
Hello guys, in sequoia I use a Mac mini m2 and boot from a samsung T7 HD without any problem. I use Time Machine since years ago without any problem now, I want to exclude from backup the "Macintosh HD" (the original internal Mac mini hd) but in Time Machine when I try to choose this HD to exclude, it appear grayed and I cannot exclude. What could be happened? I tried everything but without success... thanks Simone
1
0
233
Oct ’24