KinesteX

Loading Screen

Customize the loading screen appearance (includes native overlay color that is displayed during initial loading phase).


ParameterTypeDefaultDescriptionEffect
loadingStickmanColorstringTheme defaultStickman animation colorChanges the color of the loading animation character
loadingBackgroundColorstringTheme defaultBackground colorSets the loading screen background color
loadingTextColorstringTheme defaultText colorSets the color of loading text and messages

SDK Support:

  • Swift: Direct support via IStyle class (hex values with #)
  • Flutter: Direct support via IStyle class (hex values without #)
  • Kotlin: Direct support via IStyle data class (hex values without #)
  • React Native/React: Direct support via style object (hex values without #)
  • HTML/JS: Direct in postData object

Native Loading Overlay (Swift):


The SDK displays a native overlay on top of the WebView until content is fully loaded, preventing users from seeing a blank screen.


  • Overlay automatically hides when KinestexLoaded message is received
  • Overlay color priority:

1. Uses loadingBackgroundColor if set (hex color with #)

2. Uses white (#FFFFFF) if style = "light"

3. Uses black (#000000) if style = "dark" (default)


Style Properties:


PropertyTypeDefaultDescription
styleString?"dark"Base theme style ("dark" or "light")
themeNameString?nullCustom theme name
loadingStickmanColorString?nullColor for the loading animation stickman (hex without #)
loadingBackgroundColorString?nullBackground color during loading (hex without #)
loadingTextColorString?nullText color during loading (hex without #)
Loading Screen Customization
1// Direct SDK support via IStyle class
2let customStyle = IStyle(
3    style: "dark",
4    loadingBackgroundColor: "#1A1A2E",
5    loadingStickmanColor: "#FF6B00",
6    loadingTextColor: "#FFFFFF"
7)
8
9kinestex.createWorkoutView(
10    workout: "Fitness Lite",
11    user: user,
12    style: customStyle,
13    isLoading: $isLoading,
14    onMessageReceived: { /* ... */ }
15)