NuPlay / RichText

Easily show RichText(html) in SwiftUI
MIT License
209 stars 36 forks source link

#46 LinkOpenType Custom Handling for All URL Schemes #47

Closed NuPlay closed 5 months ago

NuPlay commented 7 months ago

46 LinkOpenType - custom type

Previously, the custom type's activation was restricted to URLs with 'http' and 'https' schemes. This limitation has now been lifted, allowing the custom type to be universally applicable to all URL schemes.

if case let .custom(action) = parent.conf.linkOpenType {
    action(url)
} else { ... }