-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EditPage에서 이미지 추가하는 기능 구현 #129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다 ~~
이미지 컷!
import UIKit | ||
import MHFoundation | ||
import MHCore | ||
import UIKit | ||
import Combine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
편-안
let albumViewModel = CustomAlbumViewModel() | ||
let customAlbumViewController = CustomAlbumViewController( | ||
viewModel: albumViewModel, | ||
mediaType: .image, | ||
mode: .editPage | ||
) { imageData, creationDate, caption in | ||
let attributes: [String: any Sendable] = [ | ||
Constant.photoCreationDate: creationDate?.toString(), | ||
Constant.photoCaption: caption | ||
] | ||
self?.input.send(.didAddMediaWithData(type: .image, attributes: attributes, data: imageData)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
미리 설정해줘야할 게 있으면 226~229번줄 처럼 attributes를 넣는 거군요,
동영상은 암것도 없어도 되겠죵..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵넵 mediaType
만 .video
로 설정해주면 됩니당 .ᐟ.ᐟ 나머지는 default값을 넣어놔서 괜찮아용 !
#️⃣ 연관된 이슈
⏰ 작업 시간
📝 작업 내용
📸 스크린샷
이미지 추가 및 확인
ScreenRecording_12-03-2024.20-01-03_1.MP4