Skip to content

v2.3.0

Compare
Choose a tag to compare
@NuPlay NuPlay released this 16 Jul 14:34
· 15 commits to main since this release
ff468d1

✨ Support macOS

Now available for iOS 13 and macOS 10.15 and later.

let package = Package(
    name: "RichText",
    platforms: [
        .iOS("13.0"),
        .macOS("10.15")
    ],
...
)

This update resolves the issue mentioned in #34 and has been implemented through PR #36

♻️ linkOpenType Default Value is Changed

  • Default value for linkOpenType is changed to .Safari.
    • Previous: .SFSafariView()
    • Reason: SFSafariView is not possible on macOS.
//previous
linkOpenType: LinkOpenType = .SFSafariView()

//now
linkOpenType: LinkOpenType = .Safari
public enum LinkOpenType {
    #if canImport(UIKit)
    case SFSafariView(configuration: SFSafariViewController.Configuration = .init(), isReaderActivated: Bool? = nil, isAnimated: Bool = true)
    #endif
    case Safari
    case none
}

👍 Contributors

Thanks to @studiogaram