File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Example/KanvasExample/Stickers Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 77import 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 }
Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ enum VideoCompositorError: Error {
1818/// and providing a new CVPixelBuffer to use as the frame in the output video.
1919final 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 ]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments