Zum Inhalt springen

Frankis Web-Site

Consulting & Software

Menü

  • Willkommen
  • Profil
  • Software
    • 12 in 3
    • CCsim
    • EMPIRE
    • Kauli
    • PIN-Master
    • Property
    • Repertoire
  • Blog

equatable

Equatable enums with associated values

Frank-Peter Poschmann Swift 19.04.201713.11.2017associated value, enum, equatable 0 Kommentare

Enums with associated values are a very powerful tool in Swift. You can store context sensitive information along with the value of the enum itself without the need of an additional data structure. But, as of in Swift 3.1, it has some serious limitations. For example, comparisons of enums are not that easy. Let’s look at this simple code:

Weiterlesen

Neueste Beiträge

  • Open the last used document on App startup 31.01.2022
  • Aliases in Synology WebStation on DSM 7 05.01.2022
  • Creating a macOS document based app with SwiftUI and the new App protocol 22.06.2021
  • SwiftUI Previews: 5s Update Error 19.05.2021
  • Call Center Simulation – Influence of Call Durations Distribution on Statistical Results 25.02.2021

Kategorien

Schlagwörter

associated value Betrieb Betriebseinführung bookmark Call Center CCsim Change cloud Codable data structure distribution document Emergency Maintenance enum equatable Experten Fehler Hotfix iCloud iterator Korrelation linked list macOS Messung NSCoding Patch Performance Portal Projekt reference type Release Schlüssel sequence serialization similarity simulator Statistik struct subscript SwiftUI UIDocumentBrowserViewController url Ursache value type Wirkung
Copyright © 2022 Frankis Web-Site. Alle Rechte vorbehalten.
Theme: Accelerate von ThemeGrill. Powered by WordPress.
  • Impressum
  • Haftungsausschluss (Disclaimer)
  • Datenschutzerklärung