From 76d0840daab7288fc99b04a4c23d504f0394e083 Mon Sep 17 00:00:00 2001 From: Melvin Rivera Date: Tue, 11 Jan 2022 11:32:10 -0500 Subject: [PATCH] Fixed 'inaccessible due to internal protection level' error. --- README.md | 2 +- Sources/DateHelper/DateHelper.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4dd032b..e4ffff0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# DateHelper 5.0 +# DateHelper 5.0.1 [![License](https://img.shields.io/badge/License-MIT-lightgrey)](https://github.com/melvitax/DateHelper/blob/master/LICENSE) [![Platform](https://img.shields.io/badge/Platform-iOS%20%7C%20watchOS%20%7C%20tvOS%20%7C%20macOS-lightgrey)](https://github.com/melvitax/DateHelper) diff --git a/Sources/DateHelper/DateHelper.swift b/Sources/DateHelper/DateHelper.swift index 997022c..321d914 100644 --- a/Sources/DateHelper/DateHelper.swift +++ b/Sources/DateHelper/DateHelper.swift @@ -1,13 +1,13 @@ // // DateHelper.swift -// Version: 5.0 +// Version: 5.0.1 // https://github.com/melvitax/DateHelper // import Foundation // swiftlint:disable file_length -extension Date { +public extension Date { // MARK: - Date from String @@ -905,7 +905,7 @@ extension Date { extension Date.DateFormatType: Equatable { // swiftlint:disable:next operator_whitespace - static func ==(lhs: Date.DateFormatType, rhs: Date.DateFormatType) -> Bool { + public static func ==(lhs: Date.DateFormatType, rhs: Date.DateFormatType) -> Bool { switch (lhs, rhs) { case (.custom(let lhsString), .custom(let rhsString)): return lhsString == rhsString