Customization
Styles
MeetingDoctors UI styles can be customized by creating an instance that complies with the 'MeetingDoctorsStyleType' protocol, modifying its properties and then linking it to the 'style' property of the library.
By default, the 'style' property is already configured with initial values that fit with the MeetingDoctors brand and are used if the style value is not overwritten or simply initialized to nil.
Properties
Colors:
// Common
// UIColor: Primary color (default: #4FA6FF).
MeetingDoctors.style?.colors.common.primary
// Chat
// Outgoing bubble
// UIColor: Bubble outgoing text colors (default: #555555).
MeetingDoctors.style?.colors.chat.messageTextOutgoing
// UIColor: Bubble outgoing date colors (default: #999999).
MeetingDoctors.style?.colors.chat.messageDateOutgoing
// UIColor: Bubble outgoing bubble colors (default: #xFFFFFF).
MeetingDoctors.style?.colors.chat.bubbleBackgroundOutgoing
// Incoming bubble
// UIColor: Bubble incoming text colors (default: #4FA6FF).
MeetingDoctors.style?.colors.chat.messageTextIncoming
// UIColor: Bubble incoming date colors (default: #FFFFFF).
MeetingDoctors.style?.colors.chat.messageDateIncoming
// UIColor: Bubble incoming bubble colors (default: #FFFFFF).
MeetingDoctors.style?.colors.chat.bubbleBackgroundIncoming
Flags:
// Common
// Bool: Show notification permission screen (default: true).
MeetingDoctors.style?.flags.common.showNotificationPermission
// ProfessionalList
// Bool: Show title of the professional list ("Chat") (default: true)
MeetingDoctors.style?.flags.professionalList.showHeader
// Bool: Whether the collegiate number should appear next to the speciality (default: false).
MeetingDoctors.style?.flags.professionalList.showCollegiateNumber
// Bool: Hiddes the navigation bar of the professional list (default: false).
MeetingDoctors.style?.flags.professionalList.isNavigationBarHidden
Features:
// Videocall - Information
// String?: First bullet of the information view, nil to hide (default: We will look for your professional straight away)
MeetingDoctors.style?.feature.videocall.information.firstItem
// String?: Second bullet of the information view, nil to hide (default: Connect to your video consultation once the professional is ready for you)
MeetingDoctors.style?.feature.videocall.information.secondItem
// String?: Third bullet of the information view, nil to hide (default: Receive your medical report and your prescription if necessary)
MeetingDoctors.style?.feature.videocall.information.thirdItem
Others:
// Inbox cell style for contact list (classic / meetingDoctors / complete)
MeetingDoctors.style?.inboxCellStyle: MeetingDoctorsInboxCellStyle
// View used as background in chat screen.
MeetingDoctors.style?.chatBackgroundView: UIView?
/// String of the literal for usser banned
MeetingDoctors.style?.supportMailBanned: String?
Usage:
MeetingDoctors.style?.colors.common.primary = .blue
MeetingDoctors.updateStyle()