CometChat interview question

Struct vs Class, SwiftUI vs UIkit. architecture and design patterns