Stroked CGPath with both width and dash

I have found the following 2 api on CGPath:

path.copy(strokingWithWidth:, lineCap:, lineJoin:, miterLimit:)
path.copy(dashingWithPhase:, lengths:)

I really need an API which returns the stroke path with a dash and a given width at the same time. Is there a way to do that?

Why not just:

let newPath = path.copy(strokingWithWidth:, lineCap:, lineJoin:, miterLimit:)?
    .copy(dashingWithPhase:, lengths:)