Can Core Text be used in conjunction with CGContext?
Yes. See e.g.
https://developer.apple.com/documentation/coretext/1509589-ctframedraw
for how to draw a Core Text “frame” into a Core Graphics CGContext.
Is PDFKit compatible with iOS?
If you mean this:
https://developer.apple.com/documentation/pdfkit
then I believe it is only useful for displaying PDF, not creating it.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: