RateAppTile 1.3.0

RateAppTile 1.3.0

Roman Barzyczak 维护。



RateAppTile

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install

需求

安装

RateAppTile 可通过 CocoaPods 获取。要安装它,只需在 Podfile 中添加以下行即可

pod 'RateAppTile'

屏幕截图

like.png review.png feedback.png

如何使用

按照示例设置应用程序

     let appId = 123456 //your app id
     let appStoreConfig = RateAppStoreConfig(appId: appId, supportEmail: "[email protected]")
    
        storyboardRateAppTile.contentView?.primaryButtonColor = UIColor(red: 96.0 / 255.0,
                                                                        green: 156.0 / 255.0,
                                                                        blue: 244.0 / 255.0, alpha: 1.0)
        
        storyboardRateAppTile.contentView?.disabledButtonColor = UIColor(red: 179.0 / 255.0,
                                                                         green: 214.0 / 255.0,
                                                                         blue: 1.0, alpha: 1.0)
                                                                         
        storyboardRateAppTile.contentView?.rateEmptyImage = UIImage(named: "iconHeartEmpty")
        storyboardRateAppTile.contentView?.rateFullImage = UIImage(named: "iconHeartFeedbackr")
        storyboardRateAppTile.contentView?.iconCloseImage = UIImage(named: "iconClose")                                                                 
                                                                         
        storyboardRateAppTile.contentView?.rateAppData = RateAppData(rateAppStoreConfig: appStoreConfig)
        let rateAppConfig = RateAppConfig()
        rateAppConfig.numberOfLaunches = 0
        storyboardRateAppTile.contentView?.rateAppConfig = rateAppConfig
        storyboardRateAppTile.contentView?.onUserTap = { option in
            print("On rate app", option)
        }
        storyboardRateAppTile.contentView?.isDebug = true //disable it for release
        storyboardRateAppTile.contentView?.showIfPossible(from: self)

翻译

请将其添加到Localizable.strings

"rate_app_tile_feedback_placeholder" = "Leave few words here…";
"rate_app_tile_rate_title" = "If so, we’d really appreciate your 5 stars feedback on Appstore!";
"rate_app_tile_feedback_title" = "What we can do better?";
"rate_app_tile_feedback_action" = "Done";
"rate_app_tile_like_title" = "How likely are you to recommend this app to your friend?";
"rate_app_tile_like_action" = "Save";
"rate_app_title_thank_you_positive" = "Awesome! 🎉";
"rate_app_title_thank_you_negative" = "Thank you! 💗";
"rate_app_tile_rate_us" = "Rate us!";

作者

yoman07, [email protected]

许可

RateAppTile 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。

RateAppTile