Can you add a function to display priority based on weight?
Can you add a function to display priority based on weight? For example, what I am showing now is a pop-up window with low priority. When another pop-up window with high priority arrives, if the user does not perform any operation, we will automatically hide the pop-up window with low weight, and then display the pop-up window with high priority. window, when the user finishes operating the high-priority pop-up window, the low-priority pop-up window will pop up.
I don't see this feature having broad appeal and I unfortunately don't have time to do custom work for individual projects.
Here's my suggestion:
- Have two SwiftMessages instances, one for low priority messages and another for high priority messages.
- Present messages at varying window levels, e.g. low priority messages at
.normallevel and high priority at.alertlevel, using thepresentationContext = .window(...)config setting.
High priority messages will cover lower priority messages. When the higher priority message is hidden, any remaining lower priority messages will be revealed.
Thank you for your reply, I have already written the relevant functions, are you willing to accept my pull requests?
Unlikely, but I’ll look at it
I think most scenarios need to set the priority of the box, which is throughout the entire app life cycle. I think future versions can add this configuration, which will gain more recognition and love from developers.
I agree with Coder-Miao!
I agree with Coder-Miao!
Thank you for your reply, I have already written the relevant functions, are you willing to accept my pull requests?
已经实现优先级能力啦?开放出来共享不
I agree with Coder-Miao!