Skip to content
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

๐Ÿ”€:: [#153] ์ „์ฒด์ ์ธ ์„œ๋ฒ„ ํ†ต์‹  ํ™˜๊ฒฝ ๊ตฌ์ถ• #157

Merged
merged 38 commits into from
Feb 1, 2024

Conversation

jjunhaa0211
Copy link
Member

@jjunhaa0211 jjunhaa0211 commented Feb 1, 2024

28c0c4b4-ddf1-4518-96b1-da49c4ad1d40.mp4

์„œ๋ฒ„ ๊ตฌ์ถ• ์„ฑ๊ณต

  • ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ž‘์„ฑ
  • useCase ์ž‘์„ฑ
  • model ๋”ฐ๋กœ ๋นผ๊ธฐ
  • Domain ๋กœ์ง ๊ตฌํ˜„
  • Data ๋กœ์ง ๊ตฌํ˜„

MotivationMessageModel ์ ‘๊ทผ์ œ์–ด์ž ์ˆ˜์ •
MyRoutineTableViewCell AddView ์‚ญ์ œ
๋ชจ๋“ˆ: HomeCoordintable
@jjunhaa0211 jjunhaa0211 self-assigned this Feb 1, 2024
@jjunhaa0211 jjunhaa0211 added kind/๊ธฐ๋Šฅ ์ด๋Ÿฐ ๊ธฐ๋Šฅ์„ ์ง€๊ธˆ ์ถ”๊ฐ€ํ• ๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. kind/๋ฆฌํŽ™ํ† ๋ง ์ฝ”๋“œ๋ฅผ ๋”์šฑ ํšจ์œจ์ ์ด๊ฒŒ ๋ณ€๊ฒฝํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. labels Feb 1, 2024
@jjunhaa0211 jjunhaa0211 changed the title 153 [Feature] ์„œ๋ฒ„ ํ†ต์‹  ํ™˜๊ฒฝ ๊ตฌ์ถ• ๐Ÿ”€:: #153 [Feature] ์„œ๋ฒ„ ํ†ต์‹  ํ™˜๊ฒฝ ๊ตฌ์ถ• Feb 1, 2024
@jjunhaa0211 jjunhaa0211 changed the title ๐Ÿ”€:: #153 [Feature] ์„œ๋ฒ„ ํ†ต์‹  ํ™˜๊ฒฝ ๊ตฌ์ถ• ๐Ÿ”€:: [#153] ์ „์ฒด์ ์ธ ์„œ๋ฒ„ ํ†ต์‹  ํ™˜๊ฒฝ ๊ตฌ์ถ• Feb 1, 2024
@@ -7,5 +7,5 @@ public protocol BaseViewModel {
associatedtype Input
associatedtype Output

func transform(_ input: Input) -> Output
func transform(_ input: Input, action: (Output) -> Void) -> Output
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input๊ณผ output์‚ฌ์ด์˜ ๋™์ž‘์„ ์œ„ํ•œ ๊ฒƒ์ธ๊ฐ€์š”?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Output ํƒ€์ž…์„ ์ธ์ž๋กœ ๋ฐ›์•„์„œ ๋ฐ˜ํ™˜ ํƒ€์ž…์ด Void์ธ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค

let output = viewModel.transform(input, action: { output in
output.stepNumber
.subscribe(onNext: { stepNumber in
MGLogger.debug("Step Number: (stepNumber)")
self.stepModels = stepNumber
})
.disposed(by: disposeBag)

        output.motivationMessage
            .subscribe(onNext: { message in
                MGLogger.debug("Motivation Message: \(message)")
                self.quotes = message
            })
            .disposed(by: disposeBag)

        output.routines
            .subscribe(onNext: { routines in
                MGLogger.debug("Routines: \(routines)")
                self.routines = routines
            })
            .disposed(by: disposeBag)

        output.extras
            .subscribe(onNext: { extras in
                MGLogger.debug("Extras: \(extras)")
                self.extras = extras
            })
            .disposed(by: disposeBag)
    })
   }
   
   ์œ„์™€ ๊ฐ™์ด ๋ฌถ์–ด์„œ ๋ฐ”๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

@Eunho0922 Eunho0922 merged commit 6a84fff into develop Feb 1, 2024
1 check passed
@Eunho0922 Eunho0922 deleted the feature/#153-makeServerSetting branch February 1, 2024 08:51
@jjunhaa0211 jjunhaa0211 restored the feature/#153-makeServerSetting branch February 1, 2024 08:51
@jjunhaa0211 jjunhaa0211 deleted the feature/#153-makeServerSetting branch February 1, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/๋ฆฌํŽ™ํ† ๋ง ์ฝ”๋“œ๋ฅผ ๋”์šฑ ํšจ์œจ์ ์ด๊ฒŒ ๋ณ€๊ฒฝํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. kind/๊ธฐ๋Šฅ ์ด๋Ÿฐ ๊ธฐ๋Šฅ์„ ์ง€๊ธˆ ์ถ”๊ฐ€ํ• ๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants