Skip to content

Instantly share code, notes, and snippets.

@benigumocom
Last active May 3, 2024 09:10
Show Gist options
  • Save benigumocom/28e825e81fbf355e6bdabe72adde72c6 to your computer and use it in GitHub Desktop.
Save benigumocom/28e825e81fbf355e6bdabe72adde72c6 to your computer and use it in GitHub Desktop.
extension GroupBoxStyle where Self == MusicGroupBoxStyle {
static var music: MusicGroupBoxStyle { .init() }
//static var music: Self { Self() }
}
MusicGroupBoxStyle: GroupBoxStyle {
func makeBody(configuration: Configration) -> some View {
// congiguration.label
// configuration.content
}
}
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