Generate class diagrams in one shot with Sourcery + mermaid 🤖

  1. Install Sourcery
  2. Download source code from Gist
  3. Modify .sourcery.yml to specify the source code for analyzing
    (Sourcery can specify the analysis target by directory or target multiple directories)
  4. Execute sourcery command in the downloaded directory
  5. Display the class_diagram.md file in the same directory with GitHub Issue or other mermaid-compatible tools

Demo

ReSwift

Store ..(realization)..> StoreType --(inheritance)--> DispatchingStoreType

RxSwift

RxCocoa

PKHUD

To sum up

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Adopt Diffable Data Sources With Ease

Mountain in black and white

ViewPager Fragment navigation On Back button, (same as instagram navigation)

STAX LP and Holder Special: Early Access to the New StableXSwap Interface

WidgetKit using SwiftUI — iOS14

Add a Map to your App with MapKit and Core Location— iOS Swift Guide

Writing effective Swift code understanding how the memory works in iOS [part 1]

Better iOS through Factory Method Pattern — A basic chat view

How to configure CodePush for multiple development environments iOS & android in react-native

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
zeero

zeero

More from Medium

Vito is Vital.

Finding Favicon’s — A brief explanation

Implement Joystick in iOS (Swift 5)

Being your own CI (or how not to break dev)