From 5d1501293872493efcc075d58eabb8bea4c8ee71 Mon Sep 17 00:00:00 2001 From: Angel Garcia Date: Tue, 28 Nov 2017 21:16:47 +0100 Subject: [PATCH] #46 Disabled smart quotes --- Sources/SwiftKotlinApp/ViewController.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/SwiftKotlinApp/ViewController.swift b/Sources/SwiftKotlinApp/ViewController.swift index a725ecc..c8a4b7b 100644 --- a/Sources/SwiftKotlinApp/ViewController.swift +++ b/Sources/SwiftKotlinApp/ViewController.swift @@ -25,7 +25,12 @@ class ViewController: NSViewController { override func viewDidLoad() { super.viewDidLoad() - // Do any additional setup after loading the view. + self.swiftTextView.isAutomaticQuoteSubstitutionEnabled = false + self.swiftTextView.isAutomaticDashSubstitutionEnabled = false + self.swiftTextView.isAutomaticTextReplacementEnabled = false + self.kotlinTextView.isAutomaticQuoteSubstitutionEnabled = false + self.kotlinTextView.isAutomaticDashSubstitutionEnabled = false + self.kotlinTextView.isAutomaticTextReplacementEnabled = false } @IBAction func openSwiftFile(_ sender: AnyObject) {