Use | operator to concatenate multiline strings
This commit is contained in:
parent
2fdd3fd6ec
commit
08c91599b6
5 changed files with 6 additions and 6 deletions
|
|
@ -10,6 +10,7 @@ import UIKit
|
|||
import AVFoundation
|
||||
import OneTimePassword
|
||||
import SVProgressHUD
|
||||
import passKit
|
||||
|
||||
protocol QRScannerControllerDelegate {
|
||||
func checkScannedOutput(line: String) -> (accept: Bool, message: String)
|
||||
|
|
@ -130,7 +131,7 @@ class QRScannerController: UIViewController, AVCaptureMetadataOutputObjectsDeleg
|
|||
|
||||
func presentCameraSettings() {
|
||||
let alertController = UIAlertController(title: "Error".localize(),
|
||||
message: "CameraAccessDenied.".localize() + "\n" + "WarningToggleCameraPermissionsResetsApp.".localize(),
|
||||
message: "CameraAccessDenied.".localize() | "WarningToggleCameraPermissionsResetsApp.".localize(),
|
||||
preferredStyle: .alert)
|
||||
alertController.addAction(UIAlertAction(title: "Cancel".localize(), style: .default))
|
||||
alertController.addAction(UIAlertAction(title: "Settings".localize(), style: .cancel) { _ in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue