refactor: Minor code and UI improvements

This commit is contained in:
Andrea Busi
2021-03-23 19:09:43 +01:00
parent 88c0cda3a4
commit f7eeef58df
6 changed files with 50 additions and 12 deletions
@@ -17,6 +17,13 @@
@implementation EQNBaseViewController
#pragma mark - Accessories
- (BOOL)isBannerVisible
{
return ![EQNPurchaseUtility isProVersionEnabled];
}
#pragma mark - View Lifecycle
- (void)viewDidLoad
@@ -52,7 +59,7 @@
- (void)handleAdBanner
{
// ad banner mut be displayed only for non pro users
if ([EQNPurchaseUtility isProVersionEnabled]) {
if (!self.isBannerVisible) {
[self hideAdBanner];
return;
}