This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// UIView 크기만큼 미리보기 제공 | |
| import SwiftUI | |
| public struct CompactPreview<V: UIView>: View { | |
| @State private var parentSize: CGSize? | |
| @State private var foundSize: CGSize? | |
| /// UIView 빌더 | |
| let builder: () -> V | |
| /// 가로를 상위에 채울껀지 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import ImageIO | |
| enum ImageResizeError: Error { | |
| case invalidMaxDimension | |
| case cannotCreateImageSource | |
| case cannotReadImageProperties | |
| case cannotCreateThumbnail | |
| case cannotEncodeJPEG |
OlderNewer