Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 546 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 546 Bytes

NSTextView+LineNumberView

Add line numbers to an instance of NSTextView.

Screenshot

Example

import Cocoa

// Your view controller
class ViewController: NSViewController {

    // The text view you wish to add line number view to
    @IBOutlet var mainTextView: NSTextView!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        mainTextView.lnv_setUpLineNumberView()
    }
}