Zum Inhalt springen

Frankis Website

Consulting & Software

Menü

  • Willkommen
  • Profil
  • Software
    • 12 in 3
    • CCsim
    • EMPIRE
    • Himp
    • Kauli
    • Muvy
    • 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

  • Force a Save on a Document Based iOS App in SwiftUI 27.01.2025
  • Mount a Backup Volume via Script on Synology NAS 02.08.2024
  • Restore Window Size on MacCatalyst Apps 06.12.2023
  • An improved version of OutlinePicker 26.08.2023
  • An improved version of NodeOutlineGroup 14.08.2023

Kategorien

Schlagwörter

App protocol associated value Betrieb bookmark Call Center CCsim cloud Codable Configuration custom map data structure distribution document Drive client enum focus iCloud iOS linked list macOS Mapkit map tile Model NodeOutlineGroup NSCoding Outline Performance Picker picture projection polyline Portal reference type Script selection serialization simulator struct SwiftUI Sync tree UIDocumentBrowserViewController undo manager url WebStation WordPress
Copyright © 2025 Frankis Website. Alle Rechte vorbehalten.
Theme: Accelerate von ThemeGrill. Präsentiert von WordPress.
  • Impressum
  • Haftungsausschluss (Disclaimer)
  • Datenschutzerklärung