self.txtResult.font = Font(name: "Consolas", size: Font.systemFontSize) self.txtResult.textAlignment = .right self.txtResult.text = "0" self.window.addSubviews(self.btnDigits) _ = self.btnDigits.map { $0.addTarget(self, action: Calculator.onDigitPress(_:_:), for: .primaryActionTriggered) } self.window.addSubviews(self.btnOperations) _ = self.btnOperations.map { $0.addTarget(self, action: Calculator.onOperationPress(_:_:), for: .primaryActionTriggered) } IUUQTHJUIVCDPNDPNQOFSETXJGUXJOCMPC FEGDCCBFFGDFDEDDGF&YBNQMFT$BMDVMBUPS$BMDVMBUPSTXJGU