Skip to content

KenanAtmaca/KRoundLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

KRoundLayout

İOS Filter Setup Layout View

alt tag

Use

   roundLayer = KRoundLayout()
   roundLayer.frame = CGRect(x: view.frame.width / 2 - 45, y: view.frame.height - 130, width: 90, height: 90)
   roundLayer.images = [#imageLiteral(resourceName: "l2"),#imageLiteral(resourceName: "l2"),#imageLiteral(resourceName: "l2"),#imageLiteral(resourceName: "l2"),#imageLiteral(resourceName: "l2"),#imageLiteral(resourceName: "l2")]
   roundLayer.titles = ["Talini","Caramel","Hootlin","Scarlet","Iris","Ain"]
   roundLayer.delegate = self
   roundLayer.selectColor = UIColor.white
   roundLayer.action = {
            // code
      }
   view.addSubview(roundLayer)

Delegate

  extension mainVC: KRoundLayoutDelegate {
    func getItem(item: (UIImage, Int)) {
        print(item.1)
    }
 }

Show & Hide Collections

 roundLayer.show()
 roundLayer.hide()

License

Usage is provided under the MIT License. See LICENSE for the full details.

Releases

No releases published

Packages

No packages published

Languages