Skip to content

Commit

Permalink
Fixed missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjenkins committed Jul 5, 2024
1 parent b94d61f commit a360d6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/PDFAuthor/Renderable/ImageRegion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public final class ImageRegion: PDFRegion {
public var blendMode: CGBlendMode?

/// :nodoc:
override public func draw(withContext context: CGContext, inRect rect: CGRect) {
override open func draw(withContext context: CGContext, inRect rect: CGRect) {
guard bounds.width > 0, bounds.height > 0 else {
return
}
Expand Down
1 change: 1 addition & 0 deletions Sources/PDFAuthor/Renderable/PDFRegion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import Foundation
import Cassowary
import CoreGraphics

/// The base class representing a rectangular region in the PDF Document.
open class PDFRegion {
Expand Down
2 changes: 1 addition & 1 deletion Sources/PDFAuthor/Renderable/StringRegion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public class StringRegion: PDFRegion {
// MARK: Drawing

/// :nodoc:
public override func draw(withContext context: CGContext, inRect rect: CGRect) {
override open func draw(withContext context: CGContext, inRect rect: CGRect) {
guard let str = attributedString else {
return
}
Expand Down

0 comments on commit a360d6a

Please sign in to comment.