zjinhu / swiftmediator Goto Github PK
View Code? Open in Web Editor NEWswift路由:Swift组件化解耦,router,Mirror反射,函数调用,SceneDelegate解耦,AppDelegate解耦
swift路由:Swift组件化解耦,router,Mirror反射,函数调用,SceneDelegate解耦,AppDelegate解耦
楼主额提供了这种kvc的方式,但还是没绕过runtime,swift是一门静态类型的语言,是否根本不适合runtime来组件化从发展的角度来看,比如楼主通过显示@objc 让vc的属性参与运行时,万一苹果下个版本或者下下个又或者某一个版本优化完后不支持了,这个组件化不是得推倒重来吗?另外这种方式对于组件传递数据的管理并不理想啊,如果两个模块不同的人来开发,大家需要定好哪些属性以及属性具体名字(这点从某种意思上也是耦合,虽然编译层面代码没有耦合),这其实跟tagert-action 的方式大同小异,都是runtime的方式,参数都是NSDictionary的方式打包传递,少不了硬编码和无法通过ide进行参数的校验和提醒,请问您当初设计这种方式的考量是?
看了这个SwiftMediator是不是不能传递一个对象参数
像 present 内部已经写死 用系统的 UINavigationController. 这个要怎么弄成自己的
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.