Closes the most recently added subpath.
- iOS 3.2+
- tvOS 9.0+
- watchOS 2.0+
This method closes the current subpath by creating a line segment between the first and last points in the subpath. This method subsequently updates the current point to the end of the newly created line segment, which is also the first point in the now closed subpath.