V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
fromzero
V2EX  ›  iDev

写苹果 App 就用 苹果 ViewModel

  •  
  •   fromzero · Apr 29 · 1781 views

    https://swiftpackageindex.com/lwj1994/apple_view_model

    不同于传统的 viewmodel ,苹果 vm 不局限于只服务 ui 。 基于服务注册的 伪 di 。viewModel 可充当任何层,repo service 引用计数自己感知生命周期,自动销毁 vm 。

    .package(url: "https://github.com/lwj1994/apple_view_model.git", from: "0.3.1")

    ai 使用: npx skills add https://github.com/lwj1994/apple_view_model --skill apple-view-model

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3269 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:24 · PVG 20:24 · LAX 05:24 · JFK 08:24
    ♥ Do have faith in what you're doing.