mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
chore: address linter warnings
Signed-off-by: Toni Förster <toni.foerster@gmail.com>
This commit is contained in:
@@ -65,9 +65,11 @@ public class OrientationTracker {
|
||||
guard newDeviceOrientation != self.currentDeviceOrientation else { return }
|
||||
self.currentDeviceOrientation = newDeviceOrientation
|
||||
|
||||
NotificationCenter.default.post(name: Self.deviceOrientationChangedNotification,
|
||||
object: nil,
|
||||
userInfo: nil)
|
||||
NotificationCenter.default.post(
|
||||
name: Self.deviceOrientationChangedNotification,
|
||||
object: nil,
|
||||
userInfo: nil
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -4,7 +4,7 @@ import SwiftUI
|
||||
struct ShareSheet: UIViewControllerRepresentable {
|
||||
typealias Callback = (_ activityType: UIActivity.ActivityType?,
|
||||
_ completed: Bool,
|
||||
_ returnedItems: [Any]?,
|
||||
_ returnedItems: [Any],
|
||||
_ error: Error?) -> Void
|
||||
|
||||
let activityItems: [Any]
|
||||
@@ -19,7 +19,10 @@ struct ShareSheet: UIViewControllerRepresentable {
|
||||
)
|
||||
|
||||
controller.excludedActivityTypes = excludedActivityTypes
|
||||
controller.completionWithItemsHandler = callback
|
||||
|
||||
controller.completionWithItemsHandler = { activityType, completed, returnedItems, error in
|
||||
callback?(activityType, completed, returnedItems ?? [], error)
|
||||
}
|
||||
|
||||
return controller
|
||||
}
|
||||
|
Reference in New Issue
Block a user