Leaflet helps you learn Swift/SwiftUI and Data Structure/Algorithms better.
Leaflet has four main functions:
【1】Algorithm Animation Visualization
Through exquisite and intuitive animation demos, abstract algorithms and data structures are made visual — every step of execution is clearly visible. This is the core highlight of Leaflet.
- Animation Demos: Carefully selected classic algorithms (sorting, searching, graph algorithms, dynamic programming, recursion, etc.) built with SwiftUI + Combine for smooth animations that make algorithm execution crystal clear.
- Interactive Playback: Support play, pause, step forward / step backward, and adjustable playback speed — control your learning pace freely.
- Data Structure Visualization: Arrays, linked lists, stacks, queues, trees, graphs and other data structures are presented graphically; insert, delete, and traverse operations are intuitive at a glance.
- Synchronized Code View: Animation demos are displayed alongside the corresponding Swift source code, letting you learn code while watching the animation — more efficient learning.
- Complexity Analysis: Visually shows the time / space complexity trends of algorithms, helping you build performance-analysis thinking.
Learning algorithms is no longer dry code reading, but a vivid visual experience — every algorithm becomes something you can "see and touch".
【2】Swift Tutorial
- Swift one-hour micro class, quickly master the core knowledge points of Swift grammar
- Swift5 complete tutorial covering all language features from beginner to advanced
- Swift Code Style Guide for writing more standardized code
- Swift design pattern practice
【3】Swift + SwiftUI + Combine
SwiftUI's declarative UI paired with Combine's functional reactive framework — simple to learn, high-performance, and reliable, enabling developers to quickly build elegant applications.
【4】Algorithm Solutions
Curated representative algorithm problems implemented in Swift, covering data structures and algorithm analysis to help you master algorithm complexity and performance analysis.
Part of the application is based on the open source protocol from the following open source libraries, Gratitude:
https://github.com/raywenderlich/swift-algorithm-club , Algorithms and data structures in Swift, with explanations!
https://github.com/andyRon/swift-algorithm-club-cn, swift-algorithm-club's translation. Learn algorithms and data structures using Swift.