dzenbot/DZNEmptyDataSet

Rewrite in Swift

Offen

#174 geöffnet am 18.12.2015

 (17 Kommentare) (16 Reaktionen) (0 zugewiesene Personen)Objective-C (1.710 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (12.015 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

🚧 Work in progress in v2-swift branch 🚧


It has been really great noticing how DZNEmptyDataSet has been useful for so many people, making their work easier and users happier and more engaged. I still believe this component should be part of UIKit, and since it still isn't, it should be a very user-friendly component the same way Apple would have designed it.

It's time to bring this library to a higher level, making it more robust, cleaner and simple. As part of v2, I've been thinking a lot about rewriting it in Swift. I'm still very new to Swift, but it's a fun challenge and it's totally worth it.

These are the few things to consider while re-writing DZNEmptyDataSet:

  • Make it fully backwards compatible: The public APIs must be available in v2
  • Consider porting all the current features
  • Keep using Auto-Layout programatically so we can build dynamic layout constraints
  • Make it as much Protocol-Oriented as possible
  • Swizzling is risky, but reliable. I wonder if there's a better way in Swift.
  • Rewrite sample projects in Swift
  • Keep Cocoapods and Carthage support

New things to include:

  • Add Unit and UI tests
  • Swift Package support

Contributor Guide