/////
Search

V3 → V4 Migration Guide

Dark mode 지원

버즈부스터 화면에서 다크모드를 지원합니다. 앱에서 다크모드를 변경하려는 경우 아래와 같이 설정하세요.
// Light mode: System 설정과 관계 없이 라이트 모드 사용 BuzzBooster.userInterfaceStyle = .light // Dark mode: System 설정과 관계 없이 다크 모드 사용 BuzzBooster.userInterfaceStyle = .dark // System 설정에 따름 BuzzBooster.userInterfaceStyle = .system
Swift
복사
💡
아무 설정도 하지 않는 경우에는 System 설정을 따릅니다. V3와 동일하게 사용하기 위해서는 Light mode의 코드를 사용해야 합니다.

User event delegate API 변경

User event delegate를 set 하는 방식에서 add/remove 하는 방식으로 변경되었습니다.

As-is

BuzzBooster.userEventDelegate = self
Swift
복사

To-be

BuzzBooster.addUserEventDelegate(self) BuzzBooster.removeUserEventDelegate(self)
Swift
복사