mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 18:12:44 +02:00
Setup NSTextAttachmentViewProvider
This commit is contained in:
@@ -59,6 +59,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
let window = UIWindow(frame: UIScreen.main.bounds)
|
||||
self.window = window
|
||||
|
||||
// Register pills provider.
|
||||
if #available(iOS 15.0, *) {
|
||||
NSTextAttachment.registerViewProviderClass(PillTextAttachmentProvider.self, forFileType: "im.vector.app.pills")
|
||||
}
|
||||
|
||||
// Create AppCoordinator
|
||||
self.rootRouter = RootRouter(window: window)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user