From a7ec1cef38dcfe6ed9d5efdbb8bb6dce9c33ad24 Mon Sep 17 00:00:00 2001 From: kahayash Date: Tue, 18 Jul 2017 20:45:17 +0900 Subject: [PATCH] fixup --- PagingKit/MenuView.swift | 29 ++++++++++++++------- PagingKit/PagingContentViewController.swift | 6 ++--- PagingKit/PagingMenuViewController.swift | 1 + iOS Sample/iOS Sample/ViewController.swift | 5 ---- 4 files changed, 22 insertions(+), 19 deletions(-) diff --git a/PagingKit/MenuView.swift b/PagingKit/MenuView.swift index df7237b..3d6ac25 100644 --- a/PagingKit/MenuView.swift +++ b/PagingKit/MenuView.swift @@ -159,21 +159,13 @@ public class PagingMenuView: UIScrollView { guard let dataSource = dataSource else { return } - + visibleCells.forEach { $0.removeFromSuperview() } visibleCells = [] numberOfItem = dataSource.numberOfItemForPagingMenuView() - frameQueue = [] - var containerWidth: CGFloat = 0 - (0..