Skip to content

Instantly share code, notes, and snippets.

@yarneo
Created January 3, 2019 21:52
Show Gist options
  • Save yarneo/753dada40a4679c5db6af9ce425e6241 to your computer and use it in GitHub Desktop.
Save yarneo/753dada40a4679c5db6af9ce425e6241 to your computer and use it in GitHub Desktop.
MDCButton *button = [[MDCButton alloc] init];
MDCRectangleShapeGenerator *rectShape = [[MDCRectangleShapeGenerator alloc] init];
[rectShape setCorners:[MDCCutCornerTreatment alloc] initWithCut:4]]];
button.shapeGenerator = rectShape;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment