Questions tagged [viper-architecture]

VIPER is an application of Clean Architecture to iOS apps.

127 questions
0
votes
1 answer

Enabling lightContent status bar style in a VIPER project

In previous versions of Swift, to change the status bar style I would use 'preferredStatusBarStyle' and return .lightContent. This method is now unavailable, I have tried every solution on SO such as: …
Ben Sullivan
  • 2,134
  • 1
  • 18
  • 32
0
votes
0 answers

NSStoryboard and Nib doesn't load NSObject if use NSWindowsController

For work I use Viper-architecture and build module through NSObject that I connect directly via the Storyboard or Nib. This works well, but if you connect through the NSViewController to segue NSWindowsControllers, the application crashes with an…
-1
votes
1 answer

How to use navigation component with VIPER architecture?

I'm trying to learn how to use VIPER with android from this tutorial https://www.raywenderlich.com/5192-android-viper-tutorial but in the end of tutorial it said it's hard to implement the router layer which a core layer of the architecture .. is…
user15587401
-1
votes
2 answers

Protocol Oriented Programming in swift iOS

Here is the Protocols: protocol WireFrameProtocol{ // router for all normal cases // like showing login page } protocol InteractorProtocol{ var wireFrame: WireFrameProtocol? { get set } } protocol HomeWireFrameProtocol:…
Asis
  • 683
  • 3
  • 23
-1
votes
1 answer

MVP vs MVC vs MVVM vs VIPER in iOS

Does there exist any sample Swift code (same project rewritten multiple times) which was written in all of the major architectures/designs, which would include: MVP, MVC, MVVM and/or MVVM-C, and VIPER. I am seeking complete quantitative performance…
Harsha
  • 760
  • 1
  • 7
  • 21
-2
votes
1 answer

Is it allowed to make Multiple navigation in one router VIPER function?

Is it allowed to make Multiple navigation in one router VIPER function? I created just one VIPER router function to multiple navigation. My code is like this : func navigateToView(data: [String: Any]) { guard let view = viewController else {…
NewbieBie
  • 1
  • 1
-2
votes
1 answer

How can I decode and deserialize json from 'the movie db' using VIPER?

I'm learning how to display data in a tableview through 'the movie db' api using the VIPER architecture but I still haven't learned how to decode and serialize JSON. I share my classes. The JSON Response { "page": 1, "results": [ …
Rodrigo
  • 19
  • 6
1 2 3
8
9