Skip to content

Conversation

@andy-pepper
Copy link

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
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
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