-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(new): supports custom and without icon #12
Conversation
ios/BurntModule.swift
Outdated
if(options.preset == .none){ | ||
view = SPIndicatorView(title: options.title, message: options.message) | ||
} else if(options.preset == .custom){ | ||
view = SPIndicatorView(title: options.title, message: options.message, preset: options.preset.toSPIndicatorPreset(options)!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it's better to unwrap if the values with if let
the way I did previously, instead of asserting with !
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed that it has only two ways to init it, so I just sorted out the code style, I think this commit will be good!
also, we need to handle a case when the icon is not found, so I just committed this to catch some edge case. CleanShot.2023-03-03.at.5.21.30.mp4 |
Left some extra notes @alantoa. I think the |
Is it all tested & good to go? |
@nandorojo yeah sure, I'm already using the patch file now! |
Published at |
Why
burnt has not supported some features below:
error
anddone
icon.so I made this PR to support them.
How
update some ts type and improve the
BurntModule.swift
native module.Test
CleanShot.2023-03-03.at.2.31.39.mp4