Skip to content

Commit

Permalink
fix sample code behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazuhiro Hayashi committed Feb 18, 2018
1 parent 473ba4a commit 544934c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iOS Sample/iOS Sample/AlignmentViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ class AlignmentViewController: UIViewController {
case .right:
menuViewController.menuView.cellAlignment = .left
}
menuViewController.reloadData()

menuViewController.view.alpha = 0
menuViewController.reloadData(with: nil) { [weak self] (finish) in
self?.menuViewController.view.alpha = 1
}
}

private func makeDataSource() -> [(menu: String, content: UIViewController)] {
Expand Down

0 comments on commit 544934c

Please sign in to comment.