AdmiralUIKit Views TextBlock Header ArrowWithButtonHeader - admiral-team/admiralui-ios GitHub Wiki
Overview
ArrowWithButtonHeader
- A header with header title, arrow and button.
Code
TitleArrowWithButtonHeader(
title: "Title",
buttonTitle: "Button",
dropDownHeaderType: .up)
You can create a TitleArrowWithButtonHeader by specifying the following parameters in the initializer:
Initializer parameters:
- title: String? - Title text block
- buttonTitle: String - Title button
- buttonAction: () -> () - The callback action by tapping the button
- renderingMode: Image.TemplateRenderingMode - Rendering mode for image
- dropDownHeaderType: DropDownHeaderType? - A type of header. DropDownHeaderType can be: up, down, custom
- headerStyle: HeaderStyle - A style of header text block. HeaderStyle can be: title, body, headline, headlineSecondary
Live Example
To run live demo with ArrowWithButtonHeader
open Xcode and run project with Example target. Then in the main page open Header/ArrowWithButtonHeader:
Contribution
You can help us to find bugs or ask us to add features.
- To start
issue
please use ready-made templates. - To make changes to the repository, you need to create a
fork
of the project, make changes to the code and create apull request
in our project. You can read more about this in the Github documentation.