xmartlabs / XLPagerTabStrip

Android PagerTabStrip for iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When I run the build, I get an error `Type 'UIWindow' has no member 'isPortrait'`.

zizi4n5 opened this issue · comments

  • Environment:

    • XLPagerTabStrip 9.1.0
    • Xcode 14.3.1
  • Xcode console output of stack trace or code compilation error.

    • XLPagerTabStrip/Sources/XLPagerTabStrip/TwitterPagerTabStripViewController.swift:185:39 Type 'UIWindow' has no member 'isPortrait' スクリーンショット 2023-08-09 6 36 58
  • Any other additional detail such as example code that you think it would be useful to understand, reproduce and solve the problem.

    • This problem also always occurs when trying to install XLPagerTabStrip in Carthage.
    • Cause of Problem
      • In #848, UIWindow+Pager.swift was not added to XLPagerTabStrip/XLPagerTabStrip.xcodeproj/project.pbxproj.

same problem

image

The previous attributes have been removed, and we can replace them with new api attributes. In this way, the operation was successful.