From 9eb4f215721725a4fac55f5def487167156e95a5 Mon Sep 17 00:00:00 2001 From: Data Kondzhariia Date: Fri, 18 Sep 2020 11:26:52 +0300 Subject: [PATCH] fixed a bug with a switch in iOS 14 --- .../Pickers/PhotoLibrary/PhotoLibraryPickerViewController.swift | 2 ++ Source/Pickers/Telegram/TelegramPickerViewController.swift | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Source/Pickers/PhotoLibrary/PhotoLibraryPickerViewController.swift b/Source/Pickers/PhotoLibrary/PhotoLibraryPickerViewController.swift index 05bc9eb6..16960ded 100644 --- a/Source/Pickers/PhotoLibrary/PhotoLibraryPickerViewController.swift +++ b/Source/Pickers/PhotoLibrary/PhotoLibraryPickerViewController.swift @@ -188,6 +188,8 @@ final class PhotoLibraryPickerViewController: UIViewController { self.alertController?.dismiss(animated: true) } alert.show() + default: + break } } diff --git a/Source/Pickers/Telegram/TelegramPickerViewController.swift b/Source/Pickers/Telegram/TelegramPickerViewController.swift index e568a651..6133eefc 100644 --- a/Source/Pickers/Telegram/TelegramPickerViewController.swift +++ b/Source/Pickers/Telegram/TelegramPickerViewController.swift @@ -220,6 +220,8 @@ final class TelegramPickerViewController: UIViewController { self.alertController?.dismiss(animated: true) } alert.show() + default: + break } }