İOS Filter Setup Layout View
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)
extension mainVC: KRoundLayoutDelegate {
func getItem(item: (UIImage, Int)) {
print(item.1)
}
}
roundLayer.show()
roundLayer.hide()
Usage is provided under the MIT License. See LICENSE for the full details.