Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest master + unselected color + pod/spm support #5

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

mkupetskii
Copy link

@mkupetskii mkupetskii commented Dec 2, 2022

This PR includes

  • latest changes from the original repo (dated Sep 1, 2022)
  • fixes for unselected color 135b4bd
  • SPM support
  • updated podspecs
  • fixed examples

Reasons

  • outdated fork with Swift 4
  • signing resource bundles issue with pods in Xcode 14

Results

  • current branch supports installation via CocoaPods — nothing will be broken in terms of old branches/releases etc
  • we can easily switch to SPM using current branch, and after it's merged, using tags and releases

alexanderkhitev and others added 30 commits December 2, 2022 11:34
We need to place subviews onto UITableViewCell's contentView (to use `UITableViewCell.insetsContentViewsToSafeArea`).
by swift 4.1 syntax

* UIColor.whiteColor() -> UIColor.white
* UIFont.systemFontOfSize(18) -> UIFont.systemFont(ofSize: 18)
by swift 4.1 syntax

* UIView.animate
* CGAffineTransform
e.g. missing commas, verb tense correction, and the like.
BaseButtonBarPagerTabStripViewController.buttonBarView.selectedBarVerticalAlignment did not respect the settings in the style.

This meant that any subclasses of BaseButtonBarPagerTabStripViewController could not change the vertical alignment of the selected bar.
Prefer the indicatorInfo's accessibilityLabel
Add UIKit import as it creates a compile time error
@mkupetskii
Copy link
Author

mkupetskii commented Dec 2, 2022

As a better approach we may use another branch https://github.com/trading-point/XLPagerTabStrip/tree/fork_from_original for the same reasons, consisting of the exact same changes.

The only difference will be in the commit structure, that is easier to follow:
if we are to keep old master branch with single extra commit for unselected color we'll eventually have something like this
Screenshot 2022-12-02 at 14 37 24

with the latest original master + added required changes on top of it:
Screenshot 2022-12-02 at 14 51 44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
10 participants