mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-01-14 14:23:25 +01:00
[PR #27] Adding possibility present prompt with custom UI + exposed ratingConditionsHaveBeenMet() func to public interface #93
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/UrbanApps/Armchair/pull/27
Author: @ibru
Created: 11/11/2015
Status: 🔄 Open
Base:
master← Head:master📝 Commits (3)
f272e80Added possibility to define custom rating prompt instead of default alert view60c9cb8Made ratingConditionsHaveBeenMet() function be exposed to public interface023a7e9Fix sending multiple times didDisplayAlertClosure📊 Changes
1 file changed (+182 additions, -68 deletions)
View changed files
📝
Source/Armchair.swift(+182 -68)📄 Description
I've introduced new property
ratingPromptand a protocolArmchairRatingPromptwhich defines how rating prompt is shown. And provided 2 default implementation forUIlAlertViewandUIAlertController.Default implementation works exactly same as before (tested on Example app). You can specify your own prompt UI like this:
I'm not familiar with OS X development so I made the code iOS only. Didn't want to mess up OS X code.
I can also update iOS Example app to include example of using custom rating UI, if you want.
I also needed to know if rating conditions have been met, so I introduced new static func which exposes private
ratingConditionsHaveBeenMet()to public.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.