(view: any)
| 2131 | } |
| 2132 | |
| 2133 | function scrollInfo(view: any): JSONObject | null { |
| 2134 | if (!isKindOf(view, "UIScrollView")) { |
| 2135 | return null; |
| 2136 | } |
| 2137 | return { |
| 2138 | contentOffset: pointValue(read(view, "contentOffset")), |
| 2139 | contentSize: sizeValue(read(view, "contentSize")), |
| 2140 | adjustedContentInset: insetsValue(read(view, "adjustedContentInset")), |
| 2141 | isScrollEnabled: Boolean(read(view, "scrollEnabled")), |
| 2142 | }; |
| 2143 | } |
| 2144 | |
| 2145 | function controlInfo(view: any): JSONObject | null { |
| 2146 | if (!isKindOf(view, "UIControl")) { |
no test coverage detected