If either usesUntilPrompt or eventsUntilPrompt is zero then both values are effectively ignored. It's reasonable for developers to set one or the other to zero to indicate no interest in value.
Perhaps give eventsUntilPrompt its own else if, in keeping with the rest of shouldPromptForRating?
https://github.com/nicklockwood/iRate/blob/master/iRate/iRate.m#L484
If either
usesUntilPrompt
oreventsUntilPrompt
is zero then both values are effectively ignored. It's reasonable for developers to set one or the other to zero to indicate no interest in value.Perhaps give
eventsUntilPrompt
its ownelse if
, in keeping with the rest ofshouldPromptForRating
?