Skip to content

Commit

Permalink
refactor(WaterMarkView): to remove unnecessary code and improve image…
Browse files Browse the repository at this point in the history
… saving
  • Loading branch information
wibus-wee committed Dec 24, 2023
1 parent da52882 commit b8dadd7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions PhotosProcessor/Views/Features/WaterMarkView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ struct WaterMarkView: View {
} else {
if let image = image {
processImage.image = image
InternalKit.eazyAlert(
title: "Encode Watermark",
message: "Watermark has been added to the image"
)
processImage.saveAs()
}
}
}
Expand All @@ -63,7 +60,7 @@ struct WaterMarkView: View {
Button {
if processImage.image != nil {
let lsbWatermark = LSBWatermark()
let data = lsbWatermark.decode(from: processImage.image!) { (data, error) in
lsbWatermark.decode(from: processImage.image!) { (data, error) in
if let error = error {
print(error)
} else {
Expand Down

0 comments on commit b8dadd7

Please sign in to comment.