codytwinton / swiftyviper Goto Github PK
View Code? Open in Web Editor NEWSwift Interaction with VIPER Architecture
License: MIT License
Swift Interaction with VIPER Architecture
License: MIT License
Could the example project be updated with a use case for modules in UINavigationControllers and UITabBarControllers? Also, will you be doing a Swift 4.2 update?
can we use it for building macos apps like Generamba ?
Xcode Templates:
Hi guys, good idea ๐ for VIPER generator
But the version of Carthage it's not available..
github "codytwinton/SwiftyVIPER" ~> 4.0
No available version for github "codytwinton/SwiftyVIPER" satisfies the requirement: ~> 4.0.0
Without version
The following build commands failed:
PhaseScriptExecution Swift\ Lint /Users/Lito/Library/Developer/Xcode/DerivedData/SwiftyVIPER-ewlkpssthmgrxzeyuoczepotiwud/Build/Intermediates/SwiftyVIPER.build/Release-appletvos/SwiftyVIPERtvOS.build/Script-6AA354C81E1783A500FB46AA.sh
(1 failure)
Last release it's 1.2.3? This version it's availavable.. not 4.0..
Thnxs
Ensure that templates are updated to best use Swift4 and the latest swiftlint
In Router
class:
open func show(from: UIViewController, embedInNavController: Bool = false, setupData: Any? = nil) {
process(setupData: setupData)
let view = embedInNavController ? embedInNavigationController() : _view
from.show(view, sender: nil)
}
Line 38 from.show(view, sender: nil)
has error: Value of optional type 'UIViewController?' must be unwrapped to a value of type 'UIViewController'
Anyone else seeing this?
UPDATE: sorry I commented on wrong viper pod, please delete this
When I pod install, my console display red warnings "[!] Unable to find a specification for SwiftyVIPER
"
This is the content of my Podfile in a new blank project below:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testViper' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for testViper
pod 'SwiftyVIPER'
end
Thanks for your SwiftyViper.
When i make a new viper module and it display two errors, Missing argument for parameter 'router' in call
and value of type 'testRouter' has no member 'view'
in my testConfigurator.swift
file.
discarded_notification_center_observer
explicit_type_interface
fatal_error_message
for_where
implicitly_unwrapped_optional
notification_center_detachment
redundant_discardable_let
cyclomatic_complexity:
ignores_case_statements: true
line_length
ignores_function_declarations
variable_name -> identifier_name
Hey, your library is really interesting.
The only problem I found was the README.md
, which lacks information.
I created this iOS Open source Readme Template so you can take a look on how to better organize.
If you want, I can help you to do it.
What are your thoughts?
In the module file, should the lazy var presenter
and view
have [unowned self]
or [weak self]
?
e.g.
` . private(set) lazy var presenter: MyFormMoverPresenter = { [unowned self] in
MyFormMoverPresenter(router: self.router, interactor: self.interactor)
}()
private(set) lazy var view: MyFormViewController = { [unowned self] in
var vc = self.storyboard.viewController(MyFormViewController.self)
vc.presenter = self.presenter
return vc
}()`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.