Skip to content

Commit

Permalink
Fix platform build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Jan 18, 2024
1 parent c575a95 commit 3069451
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ public extension RichTextAction {
@available(*, deprecated, renamed: "RichTextAction.Button")
public typealias RichTextActionButton = RichTextAction.Button

#if iOS || macOS || os(visionOS)
@available(*, deprecated, renamed: "RichTextAction.ButtonGroup")
public typealias RichTextActionButtonGroup = RichTextAction.ButtonGroup
#endif

@available(*, deprecated, renamed: "RichTextAction.ButtonStack")
public typealias RichTextActionButtonStack = RichTextAction.ButtonStack
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ public typealias RichTextCommandsIndentOptionsGroup = RichTextCommand.IndentOpti
@available(*, deprecated, renamed: "RichTextCommand.StyleOptionsGroup")
public typealias RichTextCommandsStyleOptionsGroup = RichTextCommand.StyleOptionsGroup

#if iOS || macOS || os(visionOS)
@available(*, deprecated, renamed: "RichTextCommand.FormatMenu")
public typealias RichTextFormatCommandMenu = RichTextCommand.FormatMenu

@available(*, deprecated, renamed: "RichTextCommand.ShareMenu")
public typealias RichTextShareCommandMenu = RichTextCommand.ShareMenu

#endif
2 changes: 2 additions & 0 deletions Sources/RichTextKit/_Deprecated/RichTextData+Deprecated.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import SwiftUI

#if iOS || os(visionOS)
@available(*, deprecated, renamed: "RichTextDataFormat.Menu")
public typealias RichTextDataFormatMenu = RichTextDataFormat.Menu
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ final class RichTextCoordinator_SubscriptionsTests: XCTestCase {
#if iOS || os(tvOS)
XCTAssertEqual(self.textView.richTextFont?.fontName, ".SFUI-Regular")
#elseif macOS
XCTAssertEqual(self.textView.richTextFontName, ".AppleSystemUIFont")
XCTAssertEqual(self.textView.richTextFont?.fontName, ".AppleSystemUIFont")
#endif
}
}
Expand Down

0 comments on commit 3069451

Please sign in to comment.