From 12594a787b2e04ed9721771f5888c6ebdf01b3b3 Mon Sep 17 00:00:00 2001 From: Soleil Date: Sun, 13 Feb 2022 21:15:57 +0800 Subject: [PATCH] [FIX] build break caused by TKClass macro TKClass macro removed the type of CUIPSDGradientStop. This will cause the build to failed, because clang won't be able to find the correct -initWithLocation: method. --- ThemeKit/ThemeKit/Models/TKGradientStop.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThemeKit/ThemeKit/Models/TKGradientStop.m b/ThemeKit/ThemeKit/Models/TKGradientStop.m index 0863747..04a6ebb 100644 --- a/ThemeKit/ThemeKit/Models/TKGradientStop.m +++ b/ThemeKit/ThemeKit/Models/TKGradientStop.m @@ -189,7 +189,7 @@ - (instancetype)initWithCUIPSDGradientStop:(CUIPSDGradientStop *)stop { - (id)init { if ((self = [super init])) { - self.backingStop = [[TKClass(CUIPSDGradientStop) alloc] initWithLocation:0.0]; + self.backingStop = [[CUIPSDGradientStop alloc] initWithLocation:0.0]; } return self;