Skip to content

Commit

Permalink
chore :: [#102] 레이아웃 및 로직
Browse files Browse the repository at this point in the history
  • Loading branch information
cyj513 committed Oct 16, 2024
1 parent 91dbe3c commit e2ee24b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ import Kingfisher
import Core

public class PiCKProfileView: BaseView {
private let profileImageView = UIImageView(image: .profile)
private let profileImageView = UIImageView().then {
$0.contentMode = .scaleToFill
$0.layer.cornerRadius = 30
$0.clipsToBounds = true
}
private let userInfoLabel = PiCKLabel(
textColor: .modeBlack,
font: .label1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ extension MyPageViewController: UIImagePickerControllerDelegate, UINavigationCon
picker.dismiss(animated: true) {
let image = info[UIImagePickerController.InfoKey.editedImage] as? UIImage
self.profileImageView.image = image
self.profileImageData.accept(info[UIImagePickerController.InfoKey.editedImage] as? Data ?? Data())
self.profileImageData.accept(image?.jpegData(compressionQuality: 0.1) ?? Data())
}
}
}

0 comments on commit e2ee24b

Please sign in to comment.