Skip to content

Commit

Permalink
Making transform view to png more consistent with other public methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaal111 committed Dec 19, 2023
1 parent 23b2e95 commit afdfe7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/AppIconGenerator/AppIconGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public enum AppIconGenerator {

@MainActor
public static func transformImageToData(_ image: Image) -> Data? {
transformViewToPNG(view: image)
transformViewToPNG(image)
}

@MainActor
public static func transformViewToPNG(view: some View) -> Data? {
public static func transformViewToPNG(_ view: some View) -> Data? {
#if os(iOS)
ImageRenderer(content: view)
.uiImage?
Expand Down Expand Up @@ -166,7 +166,7 @@ extension AppIconGenerator {
returning: Result<AppIconSet, AppIconGeneratorErrors>.self
) { group in
for (filename, scaledImage) in imagesToCreateMappedByName {
group.addTask { await (transformViewToPNG(view: scaledImage), filename) }
group.addTask { await (transformViewToPNG(scaledImage), filename) }
}

var images = [AppIconSet.AppIconSetImage]()
Expand Down

0 comments on commit afdfe7e

Please sign in to comment.