()
| 1742 | } |
| 1743 | |
| 1744 | function fallbackTabBarFrame(): JSONObject { |
| 1745 | const screen = rectValue(UIScreen.mainScreen.bounds) ?? { |
| 1746 | x: 0, |
| 1747 | y: 0, |
| 1748 | width: 0, |
| 1749 | height: 0, |
| 1750 | }; |
| 1751 | const height = Math.min( |
| 1752 | 83, |
| 1753 | Math.max(49, rectNumber(screen, "height") * 0.095), |
| 1754 | ); |
| 1755 | return { |
| 1756 | x: rectNumber(screen, "x"), |
| 1757 | y: rectNumber(screen, "y") + rectNumber(screen, "height") - height, |
| 1758 | width: rectNumber(screen, "width"), |
| 1759 | height, |
| 1760 | }; |
| 1761 | } |
| 1762 | |
| 1763 | function tabItemFallbackFrame( |
| 1764 | tabBarFrame: JSONObject, |
no test coverage detected