Skip to content

Commit

Permalink
Cross-platform UserInterfaceLayoutDirection
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Sep 1, 2024
1 parent 6fd83bc commit b759049
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Ligature/Platform.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#if os(macOS)
import AppKit

public typealias UserInterfaceLayoutDirection = NSUserInterfaceLayoutDirection

open class TextPosition: NSObject {

}
Expand Down Expand Up @@ -170,6 +172,7 @@ public typealias TextGranularity = UITextGranularity
public typealias TextStorageDirection = UITextStorageDirection
public typealias TextDirection = UITextDirection
public typealias TextInputStringTokenizer = UITextInputStringTokenizer
public typealias UserInterfaceLayoutDirection = UIUserInterfaceLayoutDirection

#endif

Expand Down

0 comments on commit b759049

Please sign in to comment.