sketchapp

Specifying UIBezierPath points with corner radii like in drawing apps (e.g. Sketch)

孤街醉人 提交于 2021-02-08 11:28:24
问题 In drawing apps such as Sketch, when you draw a vector, you can specify a custom corner radius for each point individually. For example, here is a 5 point vector, with the middle point's corner radius set to 17: (The top left and bottom right points have custom radii as well.) In Swift, I can draw paths using a UIBezierPath, but when I specify addLine , I'm only given an option to specify a point. I don't have the option to specify a corner radius. How do I give addLine a corner radius? It

Material Design plugin in Sketch: How do you export the generated theme?

旧街凉风 提交于 2019-12-04 23:30:51
问题 We are using the Material Design Theme Editor plugin in Sketch. It creates this amazing Style Guide and Material Design theme right in your Sketch file. Does anyone know to export then import the theme generated in Sketch to Android Studio? 回答1: Take a look at Material Components for Android (MDC-Android) https://github.com/material-components/material-components-android. The catalog module has demonstrations of all the components. The material-theme-builder module lets you enter typography,