, когда XLPagerTabStrip загружает представление в первый дочерний контроллер представления, оставляя место с обеих сторон, но если я переключил вкладки, он получает экран так, как я хотел.
вот скриншот симулятора для понимания:

И после переключения вкладок отображается полноразмерное представление [Как и ожидалось]:

Вся моя установка в обычном режиме просмотра таблицы имеет ничего не сделано в том, что это просто представление, и вот настройка XKPager
settings.style.buttonBarBackgroundColor = appBlueColor
settings.style.buttonBarItemBackgroundColor = appBlueColor
settings.style.selectedBarBackgroundColor = appBrownColor
settings.style.buttonBarItemFont = UIFont.appRegularFontWith(size: 16)
settings.style.selectedBarHeight = 4.0
settings.style.buttonBarMinimumLineSpacing = 0
settings.style.buttonBarItemTitleColor = .black
settings.style.buttonBarItemsShouldFillAvailableWidth = true
settings.style.buttonBarLeftContentInset = 0
settings.style.buttonBarRightContentInset = 0
changeCurrentIndexProgressive = { [weak self] (oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -> Void in
guard changeCurrentIndex == true else { return }
oldCell?.label.textColor = self?.oldCellColor
oldCell?.label.font = UIFont.appRegularFontWith(size: 16)
newCell?.label.textColor = .white
newCell?.label.font = UIFont.appMediumFontWith(size: 16)
}
override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
let child1 = UIStoryboard(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "childViewController1")
let child2 = UIStoryboard(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "childViewController1")
let child3 = UIStoryboard(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "childViewController1")
return [child1, child2, child3]
}
Версия Xcode: 11.2.1
swift версия: 5
ios цель развертывания: 10.0
XLPager обновлено