Skip to content

Commit

Permalink
Make app build on watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Mar 28, 2024
1 parent c614887 commit 1a0ea13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/RichTextKit/Viewer/RichTextViewer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Copyright © 2024 Daniel Saidi. All rights reserved.
//

#if iOS || macOS || os(tvOS) || os(visionOS)
import SwiftUI

/// This view can be used to display rich text without being
Expand All @@ -29,3 +30,4 @@ public struct RichTextViewer: View {
RichTextEditor(text: .constant(text), context: context)
}
}
#endif

0 comments on commit 1a0ea13

Please sign in to comment.