-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Feat/NST-62] #31 AppToast, ToastManager 작성 #32
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.
고생하셨습니다.
$0.leading.equalTo(messageLabel).offset(-20) | ||
$0.trailing.equalTo(messageLabel).offset(20) | ||
$0.top.equalTo(messageLabel).offset(-12) | ||
$0.bottom.equalTo(messageLabel).offset(12) |
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.
왼쪽오른쪽 위아래 값이 같다면, horizontalEdge , verticalEdge 를 써도 좋을 것 같네요!
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.
와 맞네요 까마득하게 잊고 있었슴다 horizontal/vertical inset으로 수정해놓겠습니다!
import RxSwift | ||
import RxCocoa | ||
|
||
final class AppToastView: UIView { |
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.
토스트 메세지가 현재 뷰가 바뀌어도 유지가 되나요? 아니면 뷰가 dismiss 또는 pop 되는 순간 사라지나요?
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.
아뇨! 현재 앱에서 표시되고 있는 화면의 window에 추가되는 것이라서 UIWindow에 붙어있는 토스트라고 생각하시면 될 것 같습니다.
화면 전환 시에도 남아있게됩니다.
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.
수고하셨습니당
🔥 Issue
close #31
🔥 변경된 내용
🔥 PR Point
내부 enum인 Status에 의해 UI 표시 스타일이 결정됩니다.
사용법은 다음과 같습니다.
foregroundActive 상태의 UIWindowSecene을 참조하여, 해당 화면에 AppToast를 출력합니다.
Toast는 Manager에서 Queue로 관리되며, dismiss시 자동으로 queue에서 삭제됩니다.
Queue에 쌓인 순서대로 표시되며, 차례대로 표시 후 queue에서 삭제됩니다.
사용자의 탭 인터랙션 발생 시 바로 본 화면 인터랙션이 가능하도록 토스트를 일괄 삭제합니다.
사용법은 다음과 같습니다.
🔥 ScreenShot
🔥 Reference
Confluence - ToastManager