Skip to content

Commit

Permalink
Refactor [#242] 친구초대뷰 불필요한 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
chaentopia committed Oct 1, 2023
1 parent 058f30a commit 3234601
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ final class InviteBannerView: BaseView {
// MARK: - Function
// MARK: Layout Helpers
override func setStyle() {
invitingView = InvitingView()

inviteImageView.do {
$0.image = ImageLiterals.Recommending.imgBannerInvite
Expand Down Expand Up @@ -88,17 +87,17 @@ final class InviteBannerView: BaseView {
invitingView.removeFromSuperview()

invitingView = InvitingView()
invitingView.profileUserYelloId()
invitingView.frame = viewController.view.bounds
invitingView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
self.invitingView.profileUserYelloId()
self.invitingView.frame = viewController.view.bounds
self.invitingView.autoresizingMask = [.flexibleWidth, .flexibleHeight]

if rootViewName == "kakao" {
Amplitude.instance().logEvent("click_invite", withEventProperties: ["invite_view": "recommend_kakao_yesfriend"])
} else if rootViewName == "school" {
Amplitude.instance().logEvent("click_invite", withEventProperties: ["invite_view": "recommend_school_yesfriend"])
}

invitingView.rootViewController = rootViewName
viewController.view.addSubview(invitingView)

}
}

0 comments on commit 3234601

Please sign in to comment.