Skip to content

Commit 2cdef40

Browse files
committed
fix: #39
1 parent de0ddaa commit 2cdef40

File tree

4 files changed

+8
-23
lines changed

4 files changed

+8
-23
lines changed

Example/TBAlertControllerDemo.xcodeproj/project.pbxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@
270270
developmentRegion = English;
271271
hasScannedForEncodings = 0;
272272
knownRegions = (
273+
English,
273274
en,
274275
Base,
275276
);

Example/TBAlertControllerDemo.xcodeproj/xcshareddata/xcschemes/TBAlertControllerDemo.xcscheme

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
3230
<MacroExpansion>
3331
<BuildableReference
3432
BuildableIdentifier = "primary"
@@ -38,8 +36,8 @@
3836
ReferencedContainer = "container:TBAlertControllerDemo.xcodeproj">
3937
</BuildableReference>
4038
</MacroExpansion>
41-
<AdditionalOptions>
42-
</AdditionalOptions>
39+
<Testables>
40+
</Testables>
4341
</TestAction>
4442
<LaunchAction
4543
buildConfiguration = "Debug"
@@ -61,8 +59,6 @@
6159
ReferencedContainer = "container:TBAlertControllerDemo.xcodeproj">
6260
</BuildableReference>
6361
</BuildableProductRunnable>
64-
<AdditionalOptions>
65-
</AdditionalOptions>
6662
</LaunchAction>
6763
<ProfileAction
6864
buildConfiguration = "Release"

Source/TBActionSheet/TBActionSheet.m

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -491,13 +491,12 @@ - (void)setupStyle
491491

492492
CGFloat containerHeight = self.actionContainer.bounds.size.height;
493493

494-
self.originalBackgroundImage = [self screenShotRect:CGRectMake(kContainerLeft, kScreenHeight - containerHeight, self.sheetWidth, containerHeight)];
495-
496494
__block BOOL useBoxBlurEffect = NO;
497495

498496
if (!self.isBackgroundTransparentEnabled) {
499497
if (self.isBlurEffectEnabled) {
500498
if (![self.actionContainer useSystemBlurEffect]) {
499+
self.originalBackgroundImage = [self screenShotRect:CGRectMake(kContainerLeft, kScreenHeight - containerHeight, self.sheetWidth, containerHeight)];
501500
TBWeakSelf(self);
502501
TBBlurEffectBlock blurBlock = ^void() {
503502
TBStrongSelf(self);
@@ -684,18 +683,6 @@ - (void)setupStyle
684683
}];
685684
}
686685

687-
- (void)refreshBlurEffect
688-
{
689-
CGFloat containerHeight = self.actionContainer.bounds.size.height;
690-
691-
self.originalBackgroundImage = [self screenShotRect:CGRectMake(kContainerLeft, kScreenHeight-containerHeight, self.sheetWidth, containerHeight)];
692-
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
693-
for (void (^blurBlock)(void) in self.blurBlocks) {
694-
blurBlock();
695-
}
696-
});
697-
}
698-
699686
- (void)updateContainerFrame
700687
{
701688
CGFloat y = kScreenHeight - self.actionContainer.frame.size.height;
@@ -893,10 +880,11 @@ - (BOOL)hasHeader
893880
return [self hasTitle] || [self hasMessage];
894881
}
895882

896-
- (void)addSeparatorLineAt:(CGPoint) point isBigFragment:(BOOL) isBigFragment
883+
- (void)addSeparatorLineAt:(CGPoint)point isBigFragment:(BOOL)isBigFragment
897884
{
898885
UIView *separatorLine = [[UIView alloc] initWithFrame:CGRectMake(point.x, point.y, self.sheetWidth, isBigFragment ? self.bigFragment : self.smallFragment)];
899-
separatorLine.backgroundColor = self.separatorColor;
886+
separatorLine.backgroundColor = isBigFragment ? [UIColor clearColor] : self.separatorColor;
887+
900888
[self.actionContainer addSubview:separatorLine];
901889
[self.separators addObject:separatorLine];
902890
}

TBActionSheet.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "TBActionSheet"
3-
s.version = "1.7.4"
3+
s.version = "1.7.5"
44
s.summary = "A Custom&Magical ActionSheet."
55
s.description = <<-DESC
66
TBActionSheet is a small library that allows you to substitute Apple's uncustomizable UIActionSheet, with a beautiful and totally customizable actionsheet that you can use in your iOS app. The default style is iOS9/10, you can make your own style. Enjoy!

0 commit comments

Comments
 (0)