Since the iOS update to 13 my app is unfortunately behaving bad. The containers height is controlled by the UISegmentControl element. The hook works fine and the correct index is set. There are 3 subcontainers:
- profileDataContainerView
- addValueContainerView
- checkInHistoryContainerView
Unfortunately the containers within the main scrollview dont change their height. Does anyone know the solution for this issue?
@IBAction func showComponent(_ sender: UISegmentedControl) {
    showComponent(index: sender.selectedSegmentIndex)
}
private func showComponent(index: Int) {
    currentContainer?.bounds.size.height = 0
    currentSegmentedControllerIndex = index
    switch index {
    case 0:
        profileDataContainerView.bounds.size.height = 308
        currentContainer = profileDataContainerView
    case 1:
        addValueContainerView.bounds.size.height = 294
        currentContainer = addValueContainerView
    case 2:
        if let tableView = checkInHistoryContainerView.subviews.last as? UITableView {
            checkInHistoryContainerView.bounds.size.height = tableView.contentSize.height
        }
        currentContainer = checkInHistoryContainerView
    default:
        break
    }
    updateContentHeight()
}

 
     
     
    