Enable SwiftLint rule 'convenience_type' and fix all violations
This commit is contained in:
parent
7d79314bae
commit
2e6cf69b03
5 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue