diff --git a/Sources/ITunesSearchClient/AppInfo.swift b/Sources/ITunesSearchClient/AppInfo.swift index 2e149f5..c4a4ef6 100644 --- a/Sources/ITunesSearchClient/AppInfo.swift +++ b/Sources/ITunesSearchClient/AppInfo.swift @@ -17,7 +17,7 @@ // // AppInfo.swift -// +// // // Created by Mykhailo Bondarenko on 12.04.2024. // @@ -41,4 +41,19 @@ public struct AppInfo { self.bundleId = result.bundleId self.currentVersionReleaseDate = result.currentVersionReleaseDate } + + /// Initializes a new `AppInfo` instance with optional parameters. + /// - Parameters: + /// - version: The version of the app. + /// - bundleId: The bundle ID of the app. + /// - currentVersionReleaseDate: The date the current version of the app was released in ISO 8601 format (YYYY-MM-DD). + public init( + version: String? = nil, + bundleId: String? = nil, + currentVersionReleaseDate: String? = nil + ) { + self.version = version + self.bundleId = bundleId + self.currentVersionReleaseDate = currentVersionReleaseDate + } }