Duplicate keys of type ... were found in a Dictionary when there is no Dictionary?
I think you are missing a full conformance to the Hashable Protocol
Pay attention to the func hash(into hasher: inout Hasher)
function which you are missing
How to avoid duplicate key error in swift when iterating over a dictionary
Each dictionary key MUST be unique
let people = ["age1":14, "age2":15, "age3":75, "age4":43, "age5":103, "age6":87, "age7":12]
for (key, value) in people {
print(value)
}
Related Topics
Public Default Init in Protocol
Swiftsupport Folder Not Included in The IPA When Generating Build from Script
User Already Authenticated in App and Firebase Realtime Database Returns Failed: Permission_Denied
Swift Loaditem Closure Not Running
How to Parse Url # Fragments with Query Items in Swift
How to Insert a Row in Tableview Without Using Reloaddata Function in Cocoa
How to Get a Class with Generic Type Accept an Array of Different by Same Generic Types
Swift Package: Ld: Warning: Dylib Was Built for Newer Macos Version (11.0) Than Being Linked (10.15)
How to Disable a Button of a Nstoolbar of Macos X in Swift
Dynamic Links Firebase Function Not Being Called at All Xcode 12
Uitableviewcell Subclass Wrong Image in Cell or Old Image Bug
How to Pass Data from Using Post/Form Leaf Template
Update UIapplicationshortcutitem from Extension