Returns an NSString
object representing the text contained in the selection (may contain linefeed characters).
SDKs
- iOS 11.0+
- macOS 10.4+
- Mac Catalyst 13.0+
Framework
- PDFKit
Declaration
var string: String? { get }
Returns an NSString
object representing the text contained in the selection (may contain linefeed characters).
SDKs
Framework
var string: String? { get }
var pages: [PDFPage]
Returns the array of pages contained in the selection.
var attributed String: NSAttributed String?
Returns an NSAttributed
object representing the text contained in the selection (may contain linefeed characters).
func bounds(for: PDFPage) -> CGRect
Returns the bounds of the selection on the specified page.
func selections By Line() -> [PDFSelection]
Returns an array of selections, one for each line of text covered by the receiver.
var color: UIColor?
Sets the color used for the drawing of a selection in both active and inactive states.