StatefulViewController:基于内容,加载,错误或空状态的占位符视图

时间:2021-02-06 10:56:13
【文件属性】:
文件名称:StatefulViewController:基于内容,加载,错误或空状态的占位符视图
文件大小:213KB
文件格式:ZIP
更新时间:2021-02-06 10:56:13
swift state-management placeholder state loading StatefulViewController 使UIViewController或UIView能够根据内容,加载,错误或空状态显示占位符视图的协议。 总览 在联网的应用程序中,视图控制器或自定义视图通常具有以下状态,需要将这些状态传达给用户: 加载:当前正在通过网络加载内容。 内容:内容可用并呈现给用户。 空:目前没有可显示的内容。 错误:下载内容时发生错误。 尽管听起来很微不足道,但在许多情况下会导致决策树很大。 StatefulViewController是此特定决策树的具体实现。 (如果要创建自己的修改版本,则可能会对用于显示和隐藏视图的感兴趣。) 版本兼容性 当前的Swi
【文件预览】:
StatefulViewController-master
----StatefulViewController()
--------ViewStateMachine.swift(8KB)
--------StatefulViewController.h(599B)
--------StatefulViewControllerImplementation.swift(4KB)
--------Info.plist(806B)
--------StatefulViewController.swift(4KB)
--------StatefulPlaceholderView.swift(606B)
----.gitignore(271B)
----StatefulViewControllerTests()
--------Info.plist(733B)
--------StatefulViewControllerTests.swift(2KB)
----Example()
--------CollectionViewController.swift(3KB)
--------PlaceholderViews()
--------ViewController.swift(3KB)
--------Info.plist(1KB)
--------Images.xcassets()
--------TableViewController.swift(3KB)
--------Base.lproj()
--------AppDelegate.swift(2KB)
----.travis.yml(710B)
----Resources()
--------decision_tree.png(59KB)
--------example.gif(161KB)
--------decision_tree.graffle(46KB)
----LICENSE(1KB)
----StatefulViewController.podspec(870B)
----README.md(7KB)
----Example.xcodeproj()
--------xcshareddata()
--------project.xcworkspace()
--------project.pbxproj(34KB)

网友评论