Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MYID Public Code
MyID iOS SDK
Commits
f06dd578
"vscode:/vscode.git/clone" did not exist on "2504e5ed01c884dd6446757df412d7f41808ac21"
Commit
f06dd578
authored
Apr 23, 2025
by
Javohir Savriy
Browse files
Update CUSTOMIZATION.md
parent
16684262
Changes
1
Hide whitespace changes
Inline
Side-by-side
CUSTOMIZATION.md
View file @
f06dd578
...
@@ -25,30 +25,36 @@ The object allows you to customize following fields:
...
@@ -25,30 +25,36 @@ The object allows you to customize following fields:
## UI customization
## UI customization
```
Swift
Here’s the converted version of your
`MyIdAppearance`
class, following the same structure and style:
let appearance = Appearance()
appearance.primaryColor = <DESIRED_UI_COLOR_HERE>
```
swift
appearance.errorColor = <DESIRED_UI_COLOR_HERE>
let
appearance
=
MyIdAppearance
()
appearance.primaryButtonColor = <DESIRED_UI_COLOR_HERE>
appearance
.
colorPrimary
=
<
DESIRED_UI_COLOR_HERE
>
appearance.primaryButtonColorDisabled = <DESIRED_UI_COLOR_HERE>
appearance
.
colorOnPrimary
=
<
DESIRED_UI_COLOR_HERE
>
appearance.primaryButtonTextColor = <DESIRED_UI_COLOR_HERE>
appearance
.
colorError
=
<
DESIRED_UI_COLOR_HERE
>
appearance.primaryButtonTextColorDisabled = <DESIRED_UI_COLOR_HERE>
appearance
.
colorOnError
=
<
DESIRED_UI_COLOR_HERE
>
appearance.buttonCornerRadius = <DESIRED_CGFLOAT_BORDER_RADIUS_HERE>
appearance
.
colorOutline
=
<
DESIRED_UI_COLOR_HERE
>
appearance
.
colorDivider
=
<
DESIRED_UI_COLOR_HERE
>
appearance
.
colorSuccess
=
<
DESIRED_UI_COLOR_HERE
>
appearance
.
colorButtonContainer
=
<
DESIRED_UI_COLOR_HERE
>
appearance
.
colorButtonContainerDisabled
=
<
DESIRED_UI_COLOR_HERE
>
appearance
.
colorButtonContent
=
<
DESIRED_UI_COLOR_HERE
>
appearance
.
colorButtonContentDisabled
=
<
DESIRED_UI_COLOR_HERE
>
appearance
.
buttonCornerRadius
=
<
DESIRED_FLOAT_RADIUS_HERE
>
```
```
*
`primaryColor`
: Defines the color of SDK which guides the user through the flow
-
`colorPrimary`
: Defines the color of SDK which guides the user through the flow
-
`colorOnPrimary`
: Defines the color of text and icons shown on top of the primary color
*
`errorColor`
: Defines the color of the error buttons, icons and states
-
`colorError`
: Defines the color of error buttons, icons, and states
-
`colorOnError`
: Defines the color of text and icons shown on top of error backgrounds
*
`primaryButtonColor`
: Defines the background color of the primary action buttons
-
`colorOutline`
: Defines the color of borders and outlines for inputs and cards
-
`colorDivider`
: Defines the color of thin lines separating UI sections
*
`primaryButtonColorDisabled`
: Defines the background color of the primary disabled buttons
-
`colorSuccess`
: Defines the color used to show successful actions or states
-
`colorButtonContainer`
: Defines the background color of the primary action buttons
*
`primaryButtonTextColor`
: Defines the color of the text inside the primary action buttons
-
`colorButtonContainerDisabled`
: Defines the background color of disabled buttons
-
`colorButtonContent`
: Defines the color of text/icons in primary action buttons
*
`primaryButtonTextColorDisabled`
: Defines the color of the text inside the primary disabled buttons
-
`colorButtonContentDisabled`
: Defines the color of text/icons in disabled buttons
-
`buttonCornerRadius`
: Defines the corner radius of all primary buttons
*
`buttonCornerRadius`
: Defines the radius dimension of all the corners of primary buttons
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment