123456789101112131415161718192021222324252627282930313233 |
- //
- // CSignatureTextField.swift
- // ComPDFKit_Tools
- //
- // Copyright © 2014-2024 PDF Technologies, Inc. All Rights Reserved.
- //
- // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
- // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
- // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
- // This notice may not be removed from this file.
- //
- import UIKit
- class CSignatureTextField: UITextField {
-
- override func editingRect(forBounds bounds: CGRect) -> CGRect {
- let inset = CGRect(x: bounds.origin.x + 150, y: bounds.origin.y, width: bounds.size.width, height: bounds.size.height)
- return inset
- }
-
- override func textRect(forBounds bounds: CGRect) -> CGRect {
- let inset = CGRect(x: bounds.origin.x, y: bounds.origin.y, width: bounds.size.width, height: bounds.size.height)
- return inset
- }
-
- override func placeholderRect(forBounds bounds: CGRect) -> CGRect {
- let inset = CGRect(x: bounds.origin.x, y: bounds.origin.y, width: bounds.size.width, height: bounds.size.height)
- return inset
- }
-
- }
|