原型机
原型机框架允许您将原型集成到 iOS 应用中并使用原型机服务接收反馈。当您使用 原型机服务 部署应用程序时,原型机框架允许用户在应用内发送反馈。
示例
首先从示例目录中运行 pod install
,然后打开 Prototyper Example.workspace
并运行 iOS 应用程序。
要求
要使用原型机框架,您需要一个 原型机在线服务 账户。要集成原型到您的应用程序,请遵循 原型框架 的说明。您的用户可以使用反馈按钮来提供反馈并与其他用户分享应用程序。反馈将在 原型机服务 的网站上显示。
安装
-
使用CocoaPods集成Prototype框架
pod 'Prototyper'
如果您想使用
PrototypeView
向应用程序添加原型,请在Podfile的末尾添加以下行。有关更多详情,请参考Prototype框架 post_install do |installer| installer.pods_project.targets.each do |target| target.new_shell_script_build_phase.shell_script = "mkdir -p $PODS_CONFIGURATION_BUILD_DIR/#{target.name}" target.build_configurations.each do |config| config.build_settings['CONFIGURATION_BUILD_DIR'] = '$PODS_CONFIGURATION_BUILD_DIR' end end installer.pods_project.build_configurations.each do |config| config.build_settings.delete('CODE_SIGNING_ALLOWED') config.build_settings.delete('CODE_SIGNING_REQUIRED') end end
-
在您的
SceneDelegate
的scene(: UIScene, willConnectTo: UISceneSession, options: UIScene.ConnectionOptions)
方法中显示反馈按钮。别忘了导入Prototyper框架。import Prototyper
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { let contentView = ContentView() if let windowScene = scene as? UIWindowScene { let window = UIWindow(windowScene: windowScene) window.rootViewController = UIHostingController(rootView: contentView) self.window = window PrototyperController.showFeedbackButton = true window.makeKeyAndVisible() } }
-
使用
Prototyper服务 部署您的应用程序
作者
Paul Schmiedmayer, @PSchmiedmayer,应用软件工程系主任,[邮件地址保护,请点击此处查看] Stefan Kofler, [邮件地址保护,请点击此处查看]
许可证
Prototyper出自MIT许可证。有关更多信息,请参阅LICENSE文件。