Prevent keyboard from hiding description field in conference scheduling view

This commit is contained in:
Christophe Deschamps 2022-06-29 13:11:54 +02:00
parent 9fe2a38455
commit b3f9c18f95

View file

@ -21,6 +21,7 @@
import UIKit
import Foundation
import linphonesw
import IQKeyboardManager
@objc class ConferenceSchedulingView: BackNextNavigationView, UICompositeViewDelegate {
@ -207,8 +208,15 @@ import linphonesw
durationValue.setIndex(index: ConferenceSchedulingViewModel.shared.scheduledDuration.value!)
timePicker.liveValue = ConferenceSchedulingViewModel.shared.scheduledDateTime
descriptionInput.text = ConferenceSchedulingViewModel.shared.description.value
IQKeyboardManager.shared().isEnabled = true
}
override func viewWillDisappear(_ animated: Bool) {
IQKeyboardManager.shared().isEnabled = false
super.viewWillDisappear(animated)
}
func gotoParticipantsListSelection() {
let view: ChatConversationCreateView = self.VIEW(ChatConversationCreateView.compositeViewDescription());
let addresses = ConferenceSchedulingViewModel.shared.selectedAddresses.value!.map { (address) in String(address.asStringUriOnly()) }