Skip to content

Commit

Permalink
[Fix] #198 - protocol type 선언
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongdung-eo committed Nov 26, 2023
1 parent 084de48 commit ae4d34a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import FSCalendar
import Then
import SnapKit

protocol CalendarViewDelegate {
protocol CalendarViewDelegate: AnyObject {

func todayBtnTapped()
}
Expand All @@ -22,7 +22,7 @@ final class CalendarView: UIView {

let today = Date()
var monthCalendarClosure: ((_ month: String) -> Void)?
var delegate: CalendarViewDelegate?
weak var delegate: CalendarViewDelegate?

// MARK: - UI Components

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit

protocol HomeModalDelegate {
protocol HomeModalDelegate: AnyObject {

func updateMissionStatus(id: Int, status: CompletionStatus)
func modifyMission(id: Int, type: MissionType)
Expand Down Expand Up @@ -37,7 +37,7 @@ final class HomeDataSource {
private var missionList: [DailyMissionResponseDTO]

var dataSource: DataSource?
var modalDelegate: HomeModalDelegate?
weak var modalDelegate: HomeModalDelegate?

// MARK: - UI Components

Expand Down

0 comments on commit ae4d34a

Please sign in to comment.