inflearn logo
Course

Course

Instructor

zone227's Posts

zone227 zone227

@zone2271730

Reviews Written
3
Average Rating
5.0

Posts 1

Q&A

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의 도움을 받아서 저장 속성을 아예 새로 만들어서 직접 값을 할당해서 해결했습니다

Likes
1
Comments
2
Viewcount
178