M Emrich

Results 33 comments of M Emrich

Similar issue: - I'm seeing a stale `CHANGELOG.md` for my package [`JDStatusBarNotification`](https://cocoapods.org/pods/JDStatusBarNotification) at version `2.0.6`. - It still [displays the `2.0.5` version](https://cocoapods.org/pods/JDStatusBarNotification#changelog) on cocoapods.org. - My repos [version diff from...

Dismissing a notification ``` NotificationPresenter.shared.dismiss() // with completion NotificationPresenter.shared.dismiss(after: 0.5) { presenter in // ... } ```

Ah you want to handle custom user interaction? See this sample code you need to disable `style.canTapToHold`: https://github.com/calimarkus/JDStatusBarNotification/blob/ffde0bab9fd0b47e426e696b5fe53deefc781452/ExampleProject/ExamplesScreen.swift#L268-L274

Yep, for that you need the above. Then you can use swift gesture handling as usual. By default a user can only swipe to dismiss.

Thanks for the feedback, I'll need to debug this. Or maybe you want to take a look at it yourself and open a PR?

Resolved! | Example 1 | Example 2 | |--------|--------| | | | | | | | | |

Yep that allows you to present SwiftUI views. I thought about adding the Alert pattern also. I renamed the issue accordingly.

The above commit adds this functionalty. You can now present like so: ```swift .notification(isPresented: $shouldPresent) { Text("✨ So simple!") } ``` and/or: ```swift .notification(isPresented: $shouldPresent, style: { $0.xx = xx...

Can you be more explicit here? Can't you pass already localized strings to the framework?

Sadly that won't work, as the view itself is implemented using `UILabel`'s. So you have to use `NSLocalizedString("string-key", comment: "")` to pass localized strings to the `present()` functions. Or use...