vds_ios_sample/VDSSample/ViewControllers/ScrollViewController/ScrollViewKeyboardAvoiding.swift
Matt Bruce 5ed2384db3 refactored to have a scrolling viewcontroller
updated checkboxgroup

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-08-24 11:08:05 -05:00

13 lines
478 B
Swift

import UIKit
/// Adjusts insets of `UIScrollView` so the keyboard does not cover content.
public protocol ScrollViewKeyboardAvoiding {
/// Handle keyboard frame change.
///
/// - Parameters:
/// - frame: New frame of the keyboard.
/// - animationDuration: Frame change animation duration.
/// - scrollView: Target `UIScrollView`.
func handleKeyboardFrameChange(_ frame: CGRect, animationDuration: TimeInterval, for scrollView: UIScrollView)
}