The WWDC videos on Metal are a start. The sample code is often only available for objective-c rather than Swift and the more recent videos are for the more complex features.
A search on the web found these that seem to cover what you need - just start with the simplest example and build on that.
https://metalbyexample.com/metal-in-swift-at-realm/
raywenderlich.com has videos on youtube including Swift 4.2 / Xcode 10 - 3D Graphics with Metal
These tend to have sample code that is based on a single view application. This gives a basic understanding of the sequence of commands to get from a CPU defined set of vertices and faces to something on the display provided by the GPU using the Metal interface.