If you turn on File Sharing (from the Sharing system preference pane) on a Mac running High Sierra, and select a folder to share that resides on a APFS formatted volume, it can only be shared out as SMB.  Selecting a folder to share that resides on an HFS+ formatted volume will allow it to be shared as either AFP or SMB.