         
         return true
     }
+    
+    func collectionView(_ collectionView:UICollectionView, didSelectItemAt indexPath:IndexPath)
+    {
+        guard
+            
+            let controller:CCreate = self.controller
+            
+        else
+        {
+            return
+        }
+        
+        controller.model.selectedBackground = indexPath.item
+        refreshFrame()
+    }
 }

    private weak var collectionView:VCollection!
    private let kCellWidth:CGFloat = 100
    private let kInterItem:CGFloat = 2
    
    override init(frame:CGRect)
    {

            at:index,
            animated:false,
            scrollPosition:UICollectionViewScrollPosition.centeredHorizontally)
    }
    
    private func refreshFrame()
    {
        DispatchQueue.main.asyncAfter(
            deadline:DispatchTime.now() + kAfterAddRefresh)
        { [weak controller] in
            
            controller?.refreshFrame()
        }
    }
    
    //MARK: collectionView delegate
