Krzysztof Zabłocki 7/17/2014

Implementing observable in Swift

Read Original

This technical article explores how to build a native Observable property system for pure Swift classes, filling the gap left by KVO. It details the API design goals, demonstrates usage with code samples, explains leveraging Swift's __conversion() for implicit type compatibility, and discusses encountered compiler issues and a wish-list for language improvements.

Implementing observable in Swift

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes