Open onmyway133 opened 4 years ago
Specify tag
enum Authentication: Int, Codable { case key case certificate } TabView(selection: $authentication) { KeyAuthenticationView() .tabItem { Text("🔑 Key") } .tag(Authentication.key) CertificateAuthenticationView() .tabItem { Text("📰 Certificate") } .tag(Authentication.certificate) }
@onmyway133 only enum Authentication: Int is required (can be enum Authentication: Hashable alternatively).
enum Authentication: Int
enum Authentication: Hashable
Specify tag