ylemojirating 0.7.0

ylemojirating 0.7.0

维护者: Yasmin Lindholm.



  • YasminL

ylemojirating

使用 ylemojirating 来提高您的 Appstore 评分(并且有点有趣哦!)

它是如何工作的

ylemojirating 显示一个页面,用户可以使用表情符号对应用程序进行评分。表情符号😱😨😐代表 1-3 星,并将用户重定向到邮件客户端以留下反馈。表情符号🙂😀将用户重定向到 Appstore 以留下评论。

img_6907

需求

至少 iOS 部署目标 10.0 或更高版本

安装

Cocoapods 是开始的最简单方式,将以下内容添加到您的 podfile 中

pod 'YLEmojiRating'

进入您的 podfile 目录并运行以下命令

pod install

使用方法

  1. 创建 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")
  1. 创建 ViewController 实例
let emojiViewController = EmojiRatingViewController()
  1. 选择模态表示样式
emojiViewController.modalPresentationStyle = .overCurrentContext
  1. 呈现 ViewController
present(emojiViewController, animated: false, completion: nil)
  1. 在 ViewController 中分配 ViewModel 属性
emojiViewController.viewModel = viewModel

许可证

本项目适用于 MIT 许可证。有关更多信息,请参阅 LICENSE 文件。