Skip to content

Commit

Permalink
pasteboard only available for ios
Browse files Browse the repository at this point in the history
  • Loading branch information
Esqarrouth committed Aug 25, 2016
1 parent 6a5d990 commit 09be984
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/StringExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,16 @@ extension String {
return false
}

#if os(iOS)

/// EZSE: copy string to pasteboard
public func addToPasteboard() {
let pasteboard = UIPasteboard.generalPasteboard()
pasteboard.string = self
}

#endif

}

/// EZSE: Pattern matching of strings via defined functions
Expand Down

0 comments on commit 09be984

Please sign in to comment.