NSTextField margin and padding? (Swift)
问题 I am wondering if there’s a possibility to set a margin or padding for NSTextField ? I achieved a more or less custom looking textField (the first one in this screenshot)... ... using this code: myTextField.wantsLayer = true myTextField.layer?.cornerRadius = 2.0 myTextField.layer?.borderWidth = 1.0 myTextField.layer?.borderColor = CGColor(red: 0.69, green: 0.69, blue: 0.69, alpha: 1.0) However, it feels like I have to add some padding on the left side so that the numbers are not too close to