summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2020-08-20 08:22:30 -0400
committerNicoleYarroch <nicole@livio.io>2020-08-20 08:22:30 -0400
commita8bdeb09bae83a7472a035e85e925563071b52c4 (patch)
treed19f9230f8040170813a7354c9e9751a86fe0628
parente28dea83f4817a1ad83c419a9b0f2c758bc001f2 (diff)
downloadsdl_ios-feature/0242_subtle_alert_style.tar.gz
Refactored permission checks in Swift ex. appfeature/0242_subtle_alert_style
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r--Example Apps/Example Swift/ButtonManager.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/Example Apps/Example Swift/ButtonManager.swift b/Example Apps/Example Swift/ButtonManager.swift
index 19549a1bb..02d3f7962 100644
--- a/Example Apps/Example Swift/ButtonManager.swift
+++ b/Example Apps/Example Swift/ButtonManager.swift
@@ -33,11 +33,11 @@ class ButtonManager: NSObject {
}
private var isSubtleAlertAllowed: Bool {
- return self.sdlManager.permissionManager.isRPCNameAllowed(SDLRPCFunctionName.subtleAlert)
+ return sdlManager.permissionManager.isRPCNameAllowed(.subtleAlert)
}
private var isAlertAllowed: Bool {
- return self.sdlManager.permissionManager.isRPCNameAllowed(SDLRPCFunctionName.alert)
+ return sdlManager.permissionManager.isRPCNameAllowed(.alert)
}
init(sdlManager: SDLManager, updateScreenHandler: RefreshUIHandler? = nil) {