We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db8f828 commit c063646Copy full SHA for c063646
ios/components/SFSymbol/SFSymbolContainer.swift
@@ -21,10 +21,13 @@ public class SFSymbolContainer: SwiftUIContainerView {
21
let decoder = JSONDecoder()
22
let updatedProps = try decoder.decode(SFSymbolProps.self, from: jsonData)
23
props.merge(from: updatedProps)
24
- // Notify the layout system that our intrinsic size may have changed
25
- invalidateIntrinsicContentSize()
26
} catch {
27
print("Failed to update SFSymbolProps: \(error)")
28
}
29
+
+ // Expose intrinsic size to React Native layout using UIKit's UIImage sizing
30
+ override public var intrinsicContentSize: CGSize {
31
+ return props.calculatedSize
32
+ }
33
0 commit comments