// // UIImage.Orientation++.swift of MijickCamera // // Created by Tomasz Kurylik. Sending ❤️ from Kraków! // - Mail: tomasz.kurylik@mijick.com // - GitHub: https://github.com/FulcrumOne // - Medium: https://medium.com/@mijick // // Copyright ©2024 Mijick. All rights reserved. import SwiftUI // MARK: From CGImagePropertyOrientation extension UIImage.Orientation { init(_ orientation: CGImagePropertyOrientation) { switch orientation { case .down: self = .down case .downMirrored: self = .downMirrored case .left: self = .left case .leftMirrored: self = .leftMirrored case .right: self = .right case .rightMirrored: self = .rightMirrored case .up: self = .up case .upMirrored: self = .upMirrored }} }