From 0731d14289588640c54852401c3fad879daa77ca Mon Sep 17 00:00:00 2001 From: rainwolf Date: Tue, 15 Dec 2015 13:21:04 +0100 Subject: [PATCH 1/3] Dismiss notification when tapped --- Pod/Classes/TSMessageView.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Pod/Classes/TSMessageView.m b/Pod/Classes/TSMessageView.m index 03893b7c..31b8619d 100755 --- a/Pod/Classes/TSMessageView.m +++ b/Pod/Classes/TSMessageView.m @@ -592,6 +592,7 @@ - (void)handleTap:(UITapGestureRecognizer *)tapGesture { self.callback(); } + [self fadeMeOut]; } } From 6ecb24ffdaf4b3019e2818e95075315cf40d2bf1 Mon Sep 17 00:00:00 2001 From: rainwolf Date: Wed, 4 Jan 2017 13:43:40 +0100 Subject: [PATCH 2/3] fix for use_frameworks! --- Pod/Classes/TSMessageView.m | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Pod/Classes/TSMessageView.m b/Pod/Classes/TSMessageView.m index 31b8619d..881a79fa 100755 --- a/Pod/Classes/TSMessageView.m +++ b/Pod/Classes/TSMessageView.m @@ -169,6 +169,13 @@ + (void)addNotificationDesignFromFile:(NSString *)filename [[TSMessageView notificationDesign] addEntriesFromDictionary:design]; } + else if ([[NSFileManager defaultManager] fileExistsAtPath:[[[NSBundle bundleForClass:[self class]] resourcePath] stringByAppendingPathComponent:filename]]) { + NSDictionary *design = [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:path] + options:kNilOptions + error:nil]; + + [[TSMessageView notificationDesign] addEntriesFromDictionary:design]; + } else { NSAssert(NO, @"Error loading design file with name %@", filename); @@ -250,6 +257,10 @@ - (id)initWithTitle:(NSString *)title { image = [UIImage imageNamed:[current valueForKey:@"imageName"]]; } + if (!image && [[current valueForKey:@"imageName"] length]) + { + image = [UIImage imageNamed:[current valueForKey:@"imageName"] inBundle:[NSBundle bundleForClass:[self class]] compatibleWithTraitCollection:nil]; + } if (![TSMessage iOS7StyleEnabled]) { From c638015178dcb81fc2b9147e777fbf37cc09c909 Mon Sep 17 00:00:00 2001 From: rainwolf Date: Mon, 1 Dec 2025 22:29:00 +0100 Subject: [PATCH 3/3] temporary fix iOS26 glass --- Pod/Classes/TSMessageView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pod/Classes/TSMessageView.m b/Pod/Classes/TSMessageView.m index 881a79fa..ff9d8873 100755 --- a/Pod/Classes/TSMessageView.m +++ b/Pod/Classes/TSMessageView.m @@ -284,7 +284,8 @@ - (id)initWithTitle:(NSString *)title } UIColor *fontColor = [UIColor colorWithHexString:[current valueForKey:@"textColor"]]; - + + self.backgroundColor = [UIColor colorWithHexString:current[@"backgroundColor"]]; self.textSpaceLeft = 2 * padding; if (image) self.textSpaceLeft += image.size.width + 2 * padding;