Yes, thatโs fine if thatโs what you want to do. Every โbrushโ means in this context how you want to stroke the line. If you are just trying to set the stroke pattern for the bezier path on some UIImageView, then yes, it seems that what you are doing is appropriate.
Now, depending on your ultimate goal, there may be different ways to approach it. Your method may have difficulty interacting with a higher-level drawing in UIKit. Since you asked about this 7 months ago, I hope you already understood this.
Dougw
source share