<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-define-custom-url-actions-for-swiftui-text-views-n4pasbc1p" -->

---
title: How to Define Custom URL Actions for SwiftUI Text Views
description: With the release of iOS 15, Apple has introduced native markdown support to the SwiftUI view. This feature allows developers to easily create strings with...
canonical: https://daily.dev/posts/how-to-define-custom-url-actions-for-swiftui-text-views-n4pasbc1p
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Define Custom URL Actions for SwiftUI Text Views | daily.dev
og:description: With the release of iOS 15, Apple has introduced native markdown support to the SwiftUI view. This feature allows developers to easily create strings with...
og:url: https://daily.dev/posts/how-to-define-custom-url-actions-for-swiftui-text-views-n4pasbc1p
og:image: https://api.daily.dev/og/posts/N4pAsBc1P.png
og:image:alt: How to Define Custom URL Actions for SwiftUI Text Views
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[Swift Senpai](https://daily.dev/sources/swiftsenpai)

[Read post](https://api.daily.dev/r/N4pAsBc1P)

# [How to Define Custom URL Actions for SwiftUI Text Views](https://api.daily.dev/r/N4pAsBc1P "Go to post")

With the release of iOS 15, Apple has introduced native markdown support to the SwiftUI view. This feature allows developers to easily create strings with hyperlinks that can open websites, send emails, or make phone calls. In the next section, we’ll take a look at some of the interesting use cases for this modifier.

[#apple](/tags/apple "Check all #apple posts")[#ios](/tags/ios "Check all #ios posts")[#markdown](/tags/markdown "Check all #markdown posts")[#swiftui](/tags/swiftui "Check all #swiftui posts")

Jul 10, 2023•3m read time•From [swiftsenpai.com](https://api.daily.dev/r/N4pAsBc1P "swiftsenpai.com")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/56f160eddacef7268fefddd7b27b62e4?_a=AQADKdt)](https://api.daily.dev/r/N4pAsBc1P "Go to post")

Table of contents

[Using the \`openURL\` Environment View Modifier](https://api.daily.dev/r/N4pAsBc1P "Using the `openURL` Environment View Modifier")[Some Interesting Use Cases](https://api.daily.dev/r/N4pAsBc1P "Some Interesting Use Cases")

7 Impressions

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![Swift Senpai's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/18c570c17ff84c01b933a1559e428a5d)](https://daily.dev/sources/swiftsenpai)

[Swift Senpai](https://daily.dev/sources/swiftsenpai "https://daily.dev/sources/swiftsenpai")

Swift Senpai's platform covers topics related to Swift programming language, iOS app development, a... Read more

13 Followers

•

5 Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Define Custom URL Actions for SwiftUI Text Views","url":"https://daily.dev/posts/how-to-define-custom-url-actions-for-swiftui-text-views-n4pasbc1p","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-define-custom-url-actions-for-swiftui-text-views-n4pasbc1p"},"datePublished":"2023-07-10T07:23:10.664Z","dateModified":"2023-07-20T14:15:11.734Z","description":"With the release of iOS 15, Apple has introduced native markdown support to the SwiftUI view. This feature allows developers to easily create strings with...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/56f160eddacef7268fefddd7b27b62e4?_a=AQADKdt","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/56f160eddacef7268fefddd7b27b62e4?_a=AQADKdt","isAccessibleForFree":true,"articleSection":"Swift Senpai","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Swift Senpai","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/18c570c17ff84c01b933a1559e428a5d","url":"https://daily.dev/sources/swiftsenpai"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-define-custom-url-actions-for-swiftui-text-views-n4pasbc1p","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"apple,ios,markdown,swiftui","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Swift Senpai","item":"https://daily.dev/sources/swiftsenpai"},{"@type":"ListItem","position":3,"name":"How to Define Custom URL Actions for SwiftUI Text Views"}]}
```

