ios - why isn't this button Constraints Design working? -
please novice ios developer. working application. created ios screen not suite design level, need configure again. here, iam attaching screenshots well. please find these screen , guide me p.s. using stack view screen creation of application
here using 1 vertical stackview , 4 horizontal stack view
this code helpful:
extension uibutton { func roundcorners(_ corners:uirectcorner, radius: cgfloat) { let path = uibezierpath(roundedrect: self.bounds, byroundingcorners: corners, cornerradii: cgsize(width: radius, height: radius)) let mask = cashapelayer() mask.path = path.cgpath self.layer.mask = mask } } //call extension this: btn.roundcorners([.topleft, .bottomright], radius: 20.0)
Comments
Post a Comment