inflearn logo
Khóa học

Khóa học

Chia sẻ kiến thức

Bài viết của zone227

zone227 zone227

@zone2271730

Số lượng đánh giá đã viết
3
Xếp hạng trung bình
5.0

Bài viết 1

Hỏi & Đáp

75강 실시간으로 팔로우수 안늘어나는 이유?

extension ProfileViewModel { func loadUserCountInfo() async { // self.user?.userCountInfo = await UserCountManager.loadUserCountInfo(userId: user?.id) //xcode 15에서 에러 발생 //xcode 16 대응 // let userId = user?.id // self.user?.userCountInfo = await UserCountManager.loadUserCountInfo(userId: userId) guard let userId = user?.id else { return } if let info = await UserCountManager.loadUserCountInfo(userId: userId) { self.postCount = info.postCount self.followerCount = info.followerCount self.followingCount = info.followingCount } } } gpt의 도움을 받아서 저장 속성을 아예 새로 만들어서 직접 값을 할당해서 해결했습니다

Lượt thích
1
Số bình luận
2
Lượt xem
180