Comments (5)
Hi @davidosorio. @Nikita2k's templates might be helpful to do what you want to do:
https://github.com/Nikita2k/SwiftViper
from swinject.
In fact, I don't have storyboards (I believe using SB is a bad practice).
But I can suggest to remove initCompleted
block and pass your view to presenter initialization
from swinject.
Hi @Nikita2k, thank you for your help!
(I had misunderstanding about the question. @davidosorio uses Presenter
but it was not in VIPER, but in MVP, which is more like MVVM.)
from swinject.
Hi, thank you @Nikita2k, @yoichitgy for your answers, for me, use or no SB depends on the size of the project, I agree that in a large project Storyboards are a bad practise, actually I use one storyboard per module/component.
from swinject.
@davidosorio, another approach is here (just for your information):
https://github.com/rizumita/TransitionOperator
I prefer using storyboards except the problem of DI, and trying to keep them small.
I understand advantages of UI implementation without storyboards. So, storyboards can be chosen depending on the size or type of your project, or your preference. (I keep myself neutral in Swinject project.)
Thanks @Nikita2k again for your help and sharing your great practice!
from swinject.
Related Issues (20)
- Class with multiple initializers defined with Container scope, creates multiple objects HOT 1
- How to remove (unregister) a dependency with Swinject?
- Provider.instance throws a threading error
- Compiling with xCode 15 beta
- Build issue: Integration of SwiftLint into Xcode project not working on Apple Silicon Macs HOT 1
- Current deployment targets are not compatible with xCode 14.3 HOT 8
- Support for Async Await HOT 9
- Synchronous reads and writes fail
- What is the best way to distribute appDelegate events to all existing components?
- Privacy Manifest HOT 6
- Not building on visionOS HOT 1
- Latest version is not available on CocoaPods HOT 1
- Ownership Transfer of Swinject Project to Faire HOT 2
- Synchronized containers deadlock when reading from multiple threads
- Not able to install the latest version 2.8.4 via cocoapods HOT 3
- Privacy Manifest HOT 1
- Compilation issue with the latest version of 2.8.5 HOT 2
- Version 2.8.8 is broken in SPM HOT 6
- Resolver using swift generic varaidic argument? HOT 3
- visionOS : Invalid redeclaration of 'lock()' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swinject.