Skip to content

Commit

Permalink
feat: add copy to pasteboard helper
Browse files Browse the repository at this point in the history
  • Loading branch information
gtokman committed May 8, 2021
1 parent 8544301 commit 95b6a3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/ExtensionKit/Foundation/String.swift
Expand Up @@ -129,6 +129,11 @@ public extension String {
}
return nil
}

/// Copy self to UIPasteboard
func copyToPasteboard() {
UIPasteboard.general.string = self
}
}

public extension String.Index {
Expand Down

0 comments on commit 95b6a3f

Please sign in to comment.