Trying to simply my code below:
for (index, point) in enumerate(self.points){
let pointButton = UIButton()
pointButton.frame = point.bounds
self.view.addSubview(pointButton)
}
Is there a better way to accomplish this through .map
.filter
or .reduce
?