diff --git a/Sources/SwiftPlus/Extensions/String.swift b/Sources/SwiftPlus/Extensions/String.swift index 6cac537..bed4074 100644 --- a/Sources/SwiftPlus/Extensions/String.swift +++ b/Sources/SwiftPlus/Extensions/String.swift @@ -44,6 +44,7 @@ public extension String { } #endif +#if os(iOS) /// Searches for Links in String /// - Returns: Dictionary of LinkString: NSRange func getLinks() -> [String: NSRange]{ @@ -60,6 +61,7 @@ public extension String { return [:] } } +#endif /// Searches for Hashtags in String /// - Returns: Dictionary of HashtagString: NSRange