diff options
author | NicoleYarroch <nicole@livio.io> | 2020-08-20 08:22:30 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2020-08-20 08:22:30 -0400 |
commit | a8bdeb09bae83a7472a035e85e925563071b52c4 (patch) | |
tree | d19f9230f8040170813a7354c9e9751a86fe0628 | |
parent | e28dea83f4817a1ad83c419a9b0f2c758bc001f2 (diff) | |
download | sdl_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.swift | 4 |
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) { |