Skip to content

Commit cee71bf

Browse files
authored
Merge pull request #174 from tumblr/CI_Warnings
Fix: Swift 6 Warnings
2 parents b2422ce + e804345 commit cee71bf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Classes/Rendering/NumTypes+Conversion.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import UIKit
88

99
//GLboolean, Boolean
10-
extension UInt8: ExpressibleByBooleanLiteral {
10+
extension UInt8: @retroactive ExpressibleByBooleanLiteral {
1111
public var boolValue: Bool {
1212
return self != 0
1313
}
@@ -16,7 +16,7 @@ extension UInt8: ExpressibleByBooleanLiteral {
1616
}
1717
}
1818
//GLint
19-
extension Int32: ExpressibleByBooleanLiteral {
19+
extension Int32: @retroactive ExpressibleByBooleanLiteral {
2020
public init(booleanLiteral value: BooleanLiteralType) {
2121
self = value ? Int32(1) : Int32(0)
2222
}

Classes/Rendering/VideoCompositor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ enum VideoCompositorError: Error {
1818
/// and providing a new CVPixelBuffer to use as the frame in the output video.
1919
final class VideoCompositor: NSObject, AVVideoCompositing {
2020

21-
var sourcePixelBufferAttributes: [String: Any]? {
21+
var sourcePixelBufferAttributes: [String: any Sendable]? {
2222
return [
2323
kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA
2424
]
2525
}
2626

27-
var requiredPixelBufferAttributesForRenderContext: [String: Any] {
27+
var requiredPixelBufferAttributesForRenderContext: [String: any Sendable] {
2828
return [
2929
kCVPixelBufferPixelFormatTypeKey as String: kCVPixelFormatType_32BGRA
3030
]

Example/KanvasExample/Stickers/ExperimentalStickerProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private struct Constants {
1616
static let imageExtension: String = "png"
1717
}
1818

19-
extension URLSessionTask: KanvasCancelable {
19+
extension URLSessionTask: @retroactive KanvasCancelable {
2020

2121
}
2222

0 commit comments

Comments
 (0)