Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JohnSundell/ee80e69b38d932ceffc749a52b0fec2e to your computer and use it in GitHub Desktop.
Save JohnSundell/ee80e69b38d932ceffc749a52b0fec2e to your computer and use it in GitHub Desktop.
Code sample #3 from my Medium post "Namespacing Swift code with nested types"
let formatter = Post.TextFormatter(options: [.highlightLinks])
let text = formatter.formatText(for: post)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment