Last active
May 3, 2024 09:10
-
-
Save benigumocom/28e825e81fbf355e6bdabe72adde72c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension GroupBoxStyle where Self == MusicGroupBoxStyle { | |
static var music: MusicGroupBoxStyle { .init() } | |
//static var music: Self { Self() } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MusicGroupBoxStyle: GroupBoxStyle { | |
func makeBody(configuration: Configration) -> some View { | |
// congiguration.label | |
// configuration.content | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GroupBox { | |
GroupBox { | |
MusicPlayerView() | |
} | |
} label: { | |
Label("Tocando Agora", systemImage: "music.note") | |
} | |
.groupBoxStyle(.music) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment