Automatic CaseIterable conformance for nested cases that also conform to CaseIterable

Some real-world use-cases can include navigation routing and theming, though, I haven't explored more scenarios then that - I am sure there will be lots more

If you want some specific code examples I can share some from my recent work looking into Composable Architecture and defining composable routes using a NavigationLink

enum HomeRoute: CaseIterable, NavigationRoute {
    case music(MusicRoute)
    case settings(SettingsRoute)

    func destination(in: Store<_, _>) -> some View
}

enum MusicRoute: CaseIterable, NavigationRoute {
    case song
    case album

    func destination(in: Store<_, _>) -> some View
}

enum SettingsRoute: CaseIterable, NavigationRoute {
    case user
    case app

    func destination(in: Store<_, _>) -> some View
}

In the example above, I would require access to the cases to configure the navigation links ahead of time so when you come to perform the action of navigating they are already available in the SwiftUI view hierarchy