if or guard on enum with a parameter instead of using a switch Aug 18, 2021 Using an if or a guard instead of a switch guard case let .onLogin(account) = gigyaEvent, let uid = account.UID else { return }