From a0eea8ebef5a7bb2e277eda91d938289fc763e23 Mon Sep 17 00:00:00 2001 From: Matias Camiletti Date: Tue, 13 Mar 2018 16:01:24 -0300 Subject: [PATCH] Fix size item and remove space --- SwiftMultiSelect/MultiSelectionViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SwiftMultiSelect/MultiSelectionViewController.swift b/SwiftMultiSelect/MultiSelectionViewController.swift index 14c7da0..14aaa96 100644 --- a/SwiftMultiSelect/MultiSelectionViewController.swift +++ b/SwiftMultiSelect/MultiSelectionViewController.swift @@ -43,6 +43,7 @@ class MultiSelecetionViewController: UIViewController,UIGestureRecognizerDelegat layout.scrollDirection = UICollectionViewScrollDirection.horizontal layout.minimumInteritemSpacing = 0 layout.minimumLineSpacing = 0 + layout.itemSize = CGSize(width: CGFloat(Config.selectorStyle.selectionHeight),height: CGFloat(Config.selectorStyle.selectionHeight)); //Build collectin view let selected = UICollectionView(frame: CGRect.zero, collectionViewLayout: layout) @@ -155,7 +156,7 @@ class MultiSelecetionViewController: UIViewController,UIGestureRecognizerDelegat ) //constraint for stackview let stackView_V = NSLayoutConstraint.constraints( - withVisualFormat: "V:|-\(navBarHeight)-[stackView]-0-|", + withVisualFormat: "V:|-[stackView]-0-|", options: NSLayoutFormatOptions(rawValue:0), metrics: nil, views: viewsDictionary