Post not yet marked as solved
Post marked as unsolved with 1 replies, 260 views
Hello,
When running an iPad app on Apple Silicon (M1) the expirationDate OptionKey of the UIPasteboard has no impact, i.e. the copied value is never removed from the clipboard.
The following code works perfectly on iOS, however, behaves how I described above on macOS.
let currentDate = Date()
let expireDate = currentDate.addingTimeInterval(TimeInterval(90))
UIPasteboard.general.setItems([[UIPasteboard.typeAutomatic: myString]], options: [UIPasteboard.OptionsKey.expirationDate: expireDate])
Is this a bug? I am on Swift 5.10.
Thank you!