'none' is unavailable: use [] to construct an empty option set in xcode 10

if notificationSettings.types.isEmpty {
    //write your code
}

use notificationSettings.types.isEmpty instead of notificationSettings.types != .none