Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.9
// swift-tools-version:6.1

import PackageDescription

Expand Down
2 changes: 1 addition & 1 deletion Source/API/Graphics/PDFLineStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#endif

/// Structure defining how a line should be drawn into graphics context
public struct PDFLineStyle: Hashable {
public struct PDFLineStyle: Hashable, Sendable {
/// Type of the line
public var type: PDFLineType

Expand Down
2 changes: 1 addition & 1 deletion Source/API/Graphics/PDFLineType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

/// Different types of lines
public enum PDFLineType: String {
public enum PDFLineType: String, Sendable {
/// No visible line
case none

Expand Down
2 changes: 1 addition & 1 deletion Source/API/Image/PDFImageOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* )
* ```
*/
public struct PDFImageOptions: OptionSet, Hashable {
public struct PDFImageOptions: OptionSet, Hashable, Sendable {
/// nodoc
public let rawValue: Int

Expand Down
2 changes: 1 addition & 1 deletion Source/API/Table/PDFTableCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

/// An instance of a table cell
public class PDFTableCell: PDFDocumentObject {
public class PDFTableCell: PDFDocumentObject, @unchecked Sendable {
/**
* Content of this cell, can be different kinds of data inside a `PDFTableContent` object.
*
Expand Down
2 changes: 1 addition & 1 deletion Source/API/Table/Style/PDFTableCellBorders.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

/// Structure used to style the border lines of a ``PDFTableCell``
public struct PDFTableCellBorders: Hashable {
public struct PDFTableCellBorders: Hashable, Sendable {
/// Style of left edge line
public var left: PDFLineStyle

Expand Down
2 changes: 1 addition & 1 deletion Source/API/Table/Style/PDFTableCellStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#endif

/// Structure used to manage the custom style of a ``PDFTableCell``
public struct PDFTableCellStyle: Hashable {
public struct PDFTableCellStyle: Hashable, @unchecked Sendable {
/// The cell fill (background) color and the text color
public var colors: (fill: Color, text: Color)

Expand Down
12 changes: 6 additions & 6 deletions Source/API/Utils/CrossPlattformGraphics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
}
}

public struct RectCorner: OptionSet {
public static var topLeft: RectCorner = .init(rawValue: 1 << 0)
public static var topRight: RectCorner = .init(rawValue: 1 << 1)
public static var bottomLeft: RectCorner = .init(rawValue: 1 << 2)
public static var bottomRight: RectCorner = .init(rawValue: 1 << 3)
public static var allCorners: RectCorner = .init(rawValue: 1 << 4 - 1)
public struct RectCorner: OptionSet, Sendable {
public static let topLeft: RectCorner = .init(rawValue: 1 << 0)
public static let topRight: RectCorner = .init(rawValue: 1 << 1)
public static let bottomLeft: RectCorner = .init(rawValue: 1 << 2)
public static let bottomRight: RectCorner = .init(rawValue: 1 << 3)
public static let allCorners: RectCorner = .init(rawValue: 1 << 4 - 1)

let value: Int

Expand Down
2 changes: 1 addition & 1 deletion Tests/TPPDFTests/Graphics/PDFGraphics_Spec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class PDFGraphics_Spec: QuickSpec {
}
}

static var allTests = [
static let allTests = [
("spec", spec),
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PDFLineSeparatorObject_Equatable_Spec: QuickSpec {
}
}

static var allTests = [
static let allTests = [
("spec", spec),
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class PDFLineSeparatorObject_Spec: QuickSpec {
}
}

static var allTests = [
static let allTests = [
("spec", spec),
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class PDFLineStyle_Equatable_Spec: QuickSpec {
}
}

static var allTests = [
static let allTests = [
("spec", spec),
]
}
2 changes: 1 addition & 1 deletion Tests/TPPDFTests/Graphics/PDFLineStyle_Spec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class PDFLineStyle_Spec: QuickSpec {
}
}

static var allTests = [
static let allTests = [
("spec", spec),
]
}
2 changes: 1 addition & 1 deletion Tests/TPPDFTests/Graphics/PDFLineType_Spec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PDFLineType_Spec: QuickSpec {
describe("PDFLineType") {}
}

static var allTests = [
static let allTests = [
("spec", spec),
]
}
2 changes: 1 addition & 1 deletion Tests/TPPDFTests/PDFGenerator+Generation_Spec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class PDFGenerator_Generation_Spec: QuickSpec {

it("should render object") {
class CustomObject: PDFRenderObject {
static var called = false
nonisolated(unsafe) static var called = false

override func draw(generator _: PDFGenerator, container _: PDFContainer, in _: PDFContext) throws {
CustomObject.called = true
Expand Down
Loading