Код: Выделить всё
let adSize = currentOrientationAnchoredAdaptiveBanner(width: UIScreen.main.bounds.width * 0.90)
BannerViewContainer(adSize)
.frame(width: adSize.size.width, height: adSize.size.height)
Код: Выделить всё
'main' was deprecated in iOS 26.0: Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.
Подробнее здесь: https://stackoverflow.com/questions/797 ... deprecated
Мобильная версия