File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,8 @@ class RCTMenuActionItem: RCTMenuElement {
4242 self . actionKey = actionKey as String ;
4343 self . actionTitle = actionTitle as String ;
4444
45- if let dict = dictionary [ " icon " ] as? NSDictionary ,
46- let icon = RCTMenuIcon ( dictionary: dict) {
47-
48- self . icon = icon;
45+ if let dict = dictionary [ " icon " ] as? NSDictionary {
46+ self . icon = RCTMenuIcon ( dictionary: dict) ;
4947
5048 // temp support for icon config shorthand/shortcut
5149 } else if let stringType = dictionary [ " iconType " ] as? String ,
Original file line number Diff line number Diff line change @@ -10,15 +10,16 @@ import Foundation
1010
1111
1212@available ( iOS 13 . 0 , * )
13- public struct RCTMenuIcon {
13+ struct RCTMenuIcon {
1414 enum IconType : String , CaseIterable , Encodable {
1515 case NONE;
1616 case URL;
1717 case SYSTEM;
1818 case ASSET;
1919 } ;
2020
21- var iconType : IconType = . NONE;
21+ var iconType : IconType = . NONE;
22+
2223 var iconValue : String ? ;
2324 var iconSize : CGFloat ? ;
2425 var iconTint : UIColor ? ;
You can’t perform that action at this time.
0 commit comments