Skip to content

Commit

Permalink
[MOB-14384] - Be more responsible on main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
PravinPK committed May 21, 2021
1 parent f377c39 commit 78a1a26
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions AEPServices/Sources/ui/floating/FloatingButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,9 @@ public class FloatingButton: NSObject, FloatingButtonPresentable {
}
}

/// Set the Image for the floating button.
/// The size of the floating button is 60x60 (width x height), provide the image data accordingly
/// - Parameters:
/// - imageData : The `Data` representation of a UIImage
public func setButtonImage(imageData: Data) {
let image = UIImage(data: imageData)
DispatchQueue.main.async {
let image = UIImage(data: imageData)
self.buttonImageView?.image = image
}
}
Expand Down

0 comments on commit 78a1a26

Please sign in to comment.