Skip to content

Pasteboard dependency - #98

Open
andy-pepper wants to merge 1 commit into
tgrapperon:mainfrom
andy-pepper:paste-board-dependency
Open

Pasteboard dependency#98
andy-pepper wants to merge 1 commit into
tgrapperon:mainfrom
andy-pepper:paste-board-dependency

Conversation

@andy-pepper

Copy link
Copy Markdown

Implementation of iOS 13 UIPasteboard dependency

Checklist:

  • iOS
  • [] macOS
  • [] macCatalyst
  • [] tvOS
  • [] watchOS
  • [] Linux
  • Add tests

UIPasteboard.general.hasImages
},
hasStrings: .init {
UIPasteboard.general.hasStrings

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you actually want to check whether it's non-nil for this reason: https://stackoverflow.com/a/66041472/18358392. At least, that's what I'm doing in my local PasteboardDependency implementation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, then again...this is a dependency wrapper so that suggestion probably doesn't apply here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants