v2.3.0
✨ 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