Enable SwiftLint rule 'convenience_type' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-04 22:05:20 +02:00 committed by Mingshen Sun
parent 7d79314bae
commit 2e6cf69b03
5 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,7 @@
// Copyright © 2019 Bob Sun. All rights reserved.
//
public struct Colors {
public enum Colors {
public static let label: UIColor = {
if #available(iOS 13.0, *) {
return .label

View file

@ -6,7 +6,7 @@
// Copyright © 2017 Bob Sun. All rights reserved.
//
public class Utils {
public enum Utils {
public static func copyToPasteboard(textToCopy: String?) {
guard textToCopy != nil else {
return