ylemojirating
使用 ylemojirating 来提高您的 Appstore 评分(并且有点有趣哦!)
它是如何工作的
ylemojirating 显示一个页面,用户可以使用表情符号对应用程序进行评分。表情符号
需求
至少 iOS 部署目标 10.0 或更高版本
安装
Cocoapods 是开始的最简单方式,将以下内容添加到您的 podfile 中
pod 'YLEmojiRating'
进入您的 podfile 目录并运行以下命令
pod install
使用方法
- 创建 ViewModel 实例
let viewModel = EmojiRatingViewViewModel(
appStoreID: "the ID",
email: "your email",
chosenStar: .none,
title: "CoffeMaker",
description: "Tap on an Emoji to give us feedback!",
cancelButtonText: "Cancel",
submitButtonText: "Submit")
- 创建 ViewController 实例
let emojiViewController = EmojiRatingViewController()
- 选择模态表示样式
emojiViewController.modalPresentationStyle = .overCurrentContext
- 呈现 ViewController
present(emojiViewController, animated: false, completion: nil)
- 在 ViewController 中分配 ViewModel 属性
emojiViewController.viewModel = viewModel
许可证
本项目适用于 MIT 许可证。有关更多信息,请参阅 LICENSE 文件。