Skip to content

Commit

Permalink
added conditional import to fix build error on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
KazaiMazai committed Jun 23, 2022
1 parent 828b50b commit 98e2f8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Formatting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
// Copyright (c) 2020 Alexander Grebenyuk (github.com/kean).

import Foundation
#if !os(macOS)
import UIKit
#else
import AppKit
#endif



public extension NSAttributedString {
/// Initializes the string with the given formatted string.
Expand Down

0 comments on commit 98e2f8b

Please sign in to comment.