// // CPDFFreeTextAnnotation+CustomStamp.swift // PDF Reader Pro // // Created by Niehaoyu on 2024/7/1. // import Foundation @objc extension CPDFFreeTextAnnotation { @objc static var _customStampAnnotationType = "customStampAnnotationType" @objc var customStampAnnotationType: String { get { return objc_getAssociatedObject(self, &Self._customStampAnnotationType) as? String ?? "0" } set { objc_setAssociatedObject(self, &Self._customStampAnnotationType, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) } } } @objc extension CPDFStampAnnotation { @objc static var _customStampAnnotationType = "customStampAnnotationType" @objc var customStampAnnotationType: String { get { return objc_getAssociatedObject(self, &Self._customStampAnnotationType) as? String ?? "0" } set { objc_setAssociatedObject(self, &Self._customStampAnnotationType, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) } } }