Customizing Knock UI components in iOS
How to customize Knock's iOS UI components.
InAppFeedTheme
#Overview
#InAppFeedTheme allows for UI customization of the KnockInAppFeedView.
Properties
#Defines the UI customization of the row items.
Sets the title of the view. If set to nil, then the title view will be hidden entirely. This is useful if you want to have a completely custom title view.
Sets the font of the title view.
Sets the color of the title view.
Sets the background color of the top portion of the view (title view, filter view, and top action buttons view).
Sets the background color of the bottom portion of the view (the list).
FeedNotificationRowTheme
#Overview
#FeedNotificationRowTheme allows for UI customization of the row items in the KnockInAppFeedView.
Properties
#Show or hide the avatar/initials view in the upper left corner of the row.
Customize styling of avatarview.
Customize the css of the markdown html of the notification body.
Background color of the FeedNotificationRow.
This is the config to set the mark as read/unread swipe actions. Set to null to remove the action entirely.
This is the config to set the archive/unarchive swipe actions. Set to null to remove the action entirely.
Color of the unread circle indicator in the top left of the row.
DateFormatter for the sent timestamp at the bottom of the row.
Font for sent timestamp.
Color for sent timestamp.
Styling for primary action buttons.
Styling for secondary action buttons.
Styling for tertiary action buttons.
AvatarViewTheme
#Overview
#AvatarViewTheme allows for UI customization of the user avatar view in the row item.
Properties
#Background color of the view. This is more apparent when the view is showing initials instead of an image.
Font for the initials view.
Text color for the initials view.
Overall size of the avatar view.