Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Add support for macCatalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezreal committed Jan 16, 2021
1 parent 8281bdb commit 98b392d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/AttributedText/AttributedText.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(SwiftUI) && !os(watchOS) && !targetEnvironment(macCatalyst)
#if canImport(SwiftUI) && !os(watchOS)

import SwiftUI

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(SwiftUI) && !os(watchOS) && !targetEnvironment(macCatalyst)
#if canImport(SwiftUI) && !os(watchOS)

import SwiftUI

Expand Down
2 changes: 1 addition & 1 deletion Sources/AttributedText/TextViewStore.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if canImport(SwiftUI) && !os(watchOS) && !targetEnvironment(macCatalyst)
#if canImport(SwiftUI) && !os(watchOS)

import SwiftUI

Expand Down
4 changes: 2 additions & 2 deletions Sources/AttributedText/TextViewWrapper+UITextView.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#if canImport(UIKit) && !os(watchOS) && !targetEnvironment(macCatalyst)
#if canImport(UIKit) && !os(watchOS)

import SwiftUI

@available(iOS 14.0, tvOS 14.0, *)
@available(iOS 14.0, tvOS 14.0, macCatalyst 14.0, *)
struct TextViewWrapper: UIViewRepresentable {
final class View: UITextView {
weak var store: TextViewStore?
Expand Down

0 comments on commit 98b392d

Please sign in to comment.