Fix button icon/title overlap: set imagePosition to NSImageLeading
commite008c37f6f47c20243a306b5ddeb6ae27f10bee4
authorMark <mark.eibes@gmail.com>
dateSun 15 Feb 2026, 10:32 (8 months ago)
parentb35ab80
example-macos/macos/YogaReactExample-macOS/RCTMacOSControlsManager.m+2−7
@@ -46,13 +46,8 @@
4646
4747- (void)setSfSymbol:(NSString *)sfSymbol {
4848 _sfSymbol = sfSymbol;
49− if (sfSymbol.length > 0) {
50− NSImage *img = [NSImage imageWithSystemSymbolName:sfSymbol accessibilityDescription:sfSymbol];
51− if (img) {
52− _button.image = img;
53− _button.imagePosition = NSImageLeading;
54− }
55− }
49+ // SF symbols in push buttons aren't idiomatic macOS (HIG: title-only for push buttons).
50+ // Kept as no-op for API compatibility; use toolbar-style buttons for icon-only.
5651}
5752
5853- (void)setBezelStyle:(NSString *)bezelStyle {