Staty: View’s State Switching within MVVM Architecture



Staty Example


  • It’s reusable as you create one specific state strategy and use it anywhere you need it just by accepting a number of protocols
  • You don’t have to worry about any other state logic and inconsistency when transitioning between states anymore: a state notifies when it exits and other state is being handled sequentaly
  • It’s extendable: when you want to add different error showing logic (for example), just create corresponding strategy and provide it through provider protocol.




iOS-Developer from Russia

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

Recommended from Medium

Android Network call with Retrofit and Kotlin’s Coroutines

Building a Standard API

Basic Car-Game using python(Part -3)

How to harness the power of cloud computing

Software Testing Part 2: How to Test?

How to do a Program Analysis?

AWS re:Invent 2021 - Day 2

Integrating Shuffle with Virustotal and TheHive — Open Source SOAR part 3

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
Isa Aliev

Isa Aliev

iOS-Developer from Russia

More from Medium

RxJava Completable equivalents in Apple’s Combine framework

Struct vs Classes

Abstract Factory Pattern in Swift

iOS: GraphQL apollo client with multi api URL’s