mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
Set property for UTType & add missing iOS 15 availabilities
This commit is contained in:
@@ -433,9 +433,11 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
|
||||
{
|
||||
// Apply alpha to blur this component
|
||||
componentString = [Tools setTextColorAlpha:.2 inAttributedString:componentString];
|
||||
[Tools setPillAlpha:.2 inAttributedString:componentString];
|
||||
if (@available(iOS 15.0, *)) {
|
||||
[Tools setPillAlpha:.2 inAttributedString:componentString];
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (@available(iOS 15.0, *))
|
||||
{
|
||||
// PillTextAttachment are not created again every time, we have to set alpha back to standard if needed.
|
||||
[Tools setPillAlpha:1.f inAttributedString:componentString];
|
||||
@@ -478,9 +480,11 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
|
||||
{
|
||||
// Apply alpha to blur this component
|
||||
componentString = [Tools setTextColorAlpha:.2 inAttributedString:componentString];
|
||||
[Tools setPillAlpha:.2 inAttributedString:componentString];
|
||||
if (@available(iOS 15.0, *)) {
|
||||
[Tools setPillAlpha:.2 inAttributedString:componentString];
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (@available(iOS 15.0, *))
|
||||
{
|
||||
// PillTextAttachment are not created again every time, we have to set alpha back to standard if needed.
|
||||
[Tools setPillAlpha:1.f inAttributedString:componentString];
|
||||
|
||||
Reference in New Issue
Block a user