Skip to content

Commit

Permalink
Merge pull request #53 from kazuhiro4949/feature/bugfix
Browse files Browse the repository at this point in the history
update index immediatelly
  • Loading branch information
kazuhiro4949 authored Apr 6, 2018
2 parents a1e8cd8 + 9614d22 commit 1ac248d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PagingKit/PagingContentViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public class PagingContentViewController: UIViewController {
public func reloadData(with page: Int? = nil, completion: (() -> Void)? = nil) {
removeAll()
let preferredPage = page ?? leftSidePageIndex
leftSidePageIndex = preferredPage
initialLoad(with: preferredPage)
UIView.pk.catchLayoutCompletion(
layout: { [weak self] in
Expand Down

0 comments on commit 1ac248d

Please sign in to comment.