Commit 0ebd60d
committed
fix(ios): correct liquid-glass accessibility, tint, corners and child mount
Addresses the PR 2 batch from the July 2026 audit.
- IOS-03: the iOS 26 UIGlassEffect path ignored Reduce Transparency, leaving
reducedTransparencyFallbackColor dead. updateEffect now routes to the fallback
when Reduce Transparency is on, and a reduceTransparencyStatusDidChange
observer re-evaluates when the user toggles it while mounted.
- IOS-13: multiply the tint's own alpha by glassOpacity instead of replacing it,
so a semi-transparent glassTintColor stays semi-transparent (the zero-alpha
"no tint" guard for issue #113 is kept).
- IOS-12 / IOS-02: apply all four corner radii via cornerConfiguration, and do
it unconditionally so animating a radius to 0 or recycling a rounded view into
an unrounded mount squares the corners instead of keeping the stale radius.
Added setBorderRadii(topLeft:topRight:bottomLeft:bottomRight:).
- IOS-05: implement ignoreSafeArea (false confines the glass to the safe area
in layoutSubviews; safeAreaInsetsDidChange triggers relayout) instead of the
empty didSet.
- IOS-04: apply glassTintColor / reducedTransparencyFallbackColor even for an
empty string so clearing a previously-set colour takes effect.
- IOS-NEW-2: LiquidGlassContainer mounts children based on the runtime class
(UIVisualEffectView -> contentView) rather than the OS version. Built with
Xcode 26 it is a UIVisualEffectView even on iOS < 26, where adding subviews
directly throws.
Verified on an iOS 26 simulator (iPhone 17 Pro): the Liquid Glass screen renders
rounded translucent glass (blue then purple tint at 80%), the glass container
mounts its Clear/Regular children without crashing, and tint changes apply live;
no redbox in Metro.1 parent 2a986b7 commit 0ebd60d
3 files changed
Lines changed: 110 additions & 66 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | | - | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
194 | 196 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
227 | 229 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
278 | 281 | | |
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
51 | | - | |
52 | 57 | | |
53 | 58 | | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
58 | | - | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
64 | | - | |
| 70 | + | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| |||
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
79 | | - | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
87 | 104 | | |
88 | 105 | | |
89 | 106 | | |
90 | 107 | | |
91 | 108 | | |
92 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
93 | 113 | | |
94 | 114 | | |
95 | 115 | | |
96 | 116 | | |
97 | 117 | | |
98 | 118 | | |
99 | | - | |
| 119 | + | |
100 | 120 | | |
101 | 121 | | |
102 | | - | |
| 122 | + | |
103 | 123 | | |
104 | 124 | | |
105 | | - | |
| 125 | + | |
106 | 126 | | |
107 | 127 | | |
108 | 128 | | |
109 | 129 | | |
110 | | - | |
| 130 | + | |
111 | 131 | | |
112 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
113 | 140 | | |
114 | 141 | | |
115 | 142 | | |
116 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
117 | 152 | | |
118 | 153 | | |
119 | 154 | | |
120 | 155 | | |
121 | | - | |
| 156 | + | |
122 | 157 | | |
123 | 158 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
128 | 165 | | |
129 | 166 | | |
130 | | - | |
| 167 | + | |
131 | 168 | | |
132 | 169 | | |
133 | | - | |
| 170 | + | |
134 | 171 | | |
135 | 172 | | |
136 | 173 | | |
137 | | - | |
| 174 | + | |
138 | 175 | | |
139 | 176 | | |
140 | 177 | | |
| |||
169 | 206 | | |
170 | 207 | | |
171 | 208 | | |
172 | | - | |
173 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
174 | 212 | | |
175 | 213 | | |
176 | 214 | | |
177 | 215 | | |
178 | 216 | | |
179 | 217 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | 218 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
190 | 223 | | |
191 | 224 | | |
192 | | - | |
| 225 | + | |
193 | 226 | | |
194 | 227 | | |
195 | 228 | | |
196 | | - | |
| 229 | + | |
197 | 230 | | |
198 | 231 | | |
199 | 232 | | |
200 | 233 | | |
201 | 234 | | |
202 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
203 | 238 | | |
204 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
205 | 245 | | |
206 | 246 | | |
207 | 247 | | |
| |||
0 commit comments