set font size for label swift code example Example: uilabel font size swift label.font = label.font.withSize(20)