mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-08-03 20:47:22 -04:00
Fix lint
This commit is contained in:
parent
b966b9ff32
commit
9b65e7fc02
@ -611,8 +611,7 @@ final class BrowserViewModel: NSObject, ObservableObject,
|
||||
)
|
||||
actions.append(
|
||||
UIAction(title: LocalString.common_dialog_button_open_in_new_tab,
|
||||
image: UIImage(systemName: "doc.badge.plus")) { [weak self] _ in
|
||||
guard let self else { return }
|
||||
image: UIImage(systemName: "doc.badge.plus")) { _ in
|
||||
Task { @MainActor in
|
||||
NotificationCenter.openURL(url, inNewTab: true)
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ final class ActivityService {
|
||||
if #available(iOS 17.2, *) {
|
||||
// important to define a timestamp, this way iOS knows which updates
|
||||
// can be dropped, if too many of them queues up
|
||||
await activity.update(newContent, timestamp: .now)
|
||||
await activity.update(newContent, timestamp: Date.now)
|
||||
} else {
|
||||
await activity.update(newContent)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user