COVIDSafe code from version 1.1

This commit is contained in:
covidsafe-support 2020-05-08 17:49:14 +10:00
commit 3640e52eb2
330 changed files with 261540 additions and 0 deletions

View file

@ -0,0 +1,12 @@
import UIKit
extension UILabel {
func semiBold(text: String) {
guard let lblTxt = self.text,
let range = lblTxt.range(of: text) else { return }
let nsRange = NSRange(range, in: lblTxt)
let attrString = NSMutableAttributedString(string: lblTxt)
attrString.addAttribute(NSAttributedString.Key.font, value: UIFont.systemFont(ofSize: 16, weight: .semibold), range: nsRange)
self.attributedText = attrString
}
}