You can use blur effect and it's animation easily to call only two methods.

Overview

SABlurImageView

Platform Language Carthage compatible SwiftPM compatible Version CocoaPods License

You can use blur effect and it's animation easily to call only two methods.

ManiacDev.com referred.
https://maniacdev.com/2015/04/open-source-ios-library-for-easily-adding-animated-blurunblur-effects-to-an-image

Features

  • Blur effect with box size
  • Blur animation
  • 0.0 to 1.0 parameter blur
  • Support Swift4

Installation

CocoaPods

SABlurImageView is available through CocoaPods. If you have cocoapods 0.38.0 or greater, you can install it, simply add the following line to your Podfile:

pod "SABlurImageView"

Carthage

If you’re using Carthage, simply add SABlurImageView to your Cartfile:

github "marty-suzuki/SABlurImageView"

Make sure to add SABlurImageView.framework to "Linked Frameworks and Libraries" and "copy-frameworks" Build Phases.

Swift Package Manager

If you’re using Swift Package Manager, simply add SABlurImageView to your Package.swift:

dependencies: [
    .package(url: "https://github.com/marty-suzuki/SABlurImageView", from: "0.1.0")
]

Manually

Add the SABlurImageView directory to your project.

Usage In Swift

To run the example project, clone the repo, and run pod install from the Example directory first.

If you install from pod, you have to write import SABlurImageView.

If you want to apply blur effect for image

let imageView = SABlurImageView(image: image)
imageView.addBlurEffect(30, times: 1)

If you want to animate

let imageView = SABlurImageView(image: image)
imageView.configrationForBlurAnimation()
imageView.startBlurAnimation(duration: 2.0)

First time of blur animation is normal to blur. Second time is blur to normal. (automatically set configration of reverse animation)

If you want to use 0.0 to 1.0 parameter

let imageView = SABlurImageView(image: image)
imageView.configrationForBlurAnimation(100)
imageView?.blur(0.5)

Usage In Objective-C

You can use SABlurImageView in Objective-C!

If you install from pod, you have to write #import <SABlurImageView/SABlurImageView-Swift.h> in .m.

If you want to apply blur effect for image

SABlurImageView *imageView = [[SABlurImageView alloc] initWithImage:image];
[imageView addBlurEffect:30.0f times:1];

If you want to animate

SABlurImageView *imageView = [[SABlurImageView alloc] initWithImage:image];
[imageView configrationForBlurAnimation:100.0f];
[imageView startBlurAnimation:2.0f];

First time of blur animation is normal to blur. Second time is blur to normal. (automatically set configration of reverse animation)

If you want to use 0.0 to 1.0 parameter

SABlurImageView *imageView = [[SABlurImageView alloc] initWithImage:image];
[imageView configrationForBlurAnimation:100.0f];
[imageView blur:0.5f];

Requirements

  • Xcode 9.3 or greater
  • iOS 8.0 or greater
  • tvOS 9.0 or greater
  • macOS 10.9 or greater
  • QuartzCore
  • Accelerate

Author

Taiki Suzuki, [email protected]

License

SABlurImageView is available under the MIT license. See the LICENSE file for more info.

Comments
  • Crashfix

    Crashfix

    Sometimes an app crashes when trying to blur an image with transparency or when there is a memory pressure. So, it would be perfect to add optionality for the blurred image.

    opened by bubnov 3
  • Save image blur in Photos

    Save image blur in Photos

    Hello my friend I use this framework in my app and it really awesome but i have a question how can i save image with blur in the iOS photos ?

    when i try to save image , that image save in Photos but doesn't have any blur effect

    Could you help me please

    Thank you

    opened by javaddeveloper 0
  • SABlurImageView crash

    SABlurImageView crash

    Hi @marty-suzuki

    In my project i add this lib for create blur image but it cause crash my app. So u can trace this log for help me resolve issue : `# Crashlytics - plaintext stacktrace downloaded by Nguyen Dang Khoa at Thu, 06 Dec 2018 04:39:29 GMT

    • Version: 3.2.1 (437)
    • Bundle Identifier: com.toast.comico.th
    • Issue #: 7
    • Issue ID: 5c077228f8b88c29639799ef
    • Session ID: 6017cda58b36447d93e9779e3496c110_DNE_0_v2
    • Date: 2018-12-05T06:37:00Z
    • OS Version: 10.3.3 (14G60)
    • Device: iPad 4
    • RAM Free: 4.9%
    • Disk Free: 44%

    #0. Crashed: com.twitter.crashlytics.ios.exception 0 Comico 0x3b93a9 CLSProcessRecordAllThreads + 3883945 1 Comico 0x3b93a9 CLSProcessRecordAllThreads + 3883945 2 Comico 0x3b9639 CLSProcessRecordAllThreads + 3884601 3 Comico 0x3acd89 CLSHandler + 3833225 4 Comico 0x3b804f __CLSExceptionRecord_block_invoke + 3878991 5 libdispatch.dylib 0x1c861783 _dispatch_client_callout + 22 6 libdispatch.dylib 0x1c86da35 _dispatch_barrier_sync_f_invoke + 50 7 Comico 0x3b7a4f CLSExceptionRecord + 3877455 8 Comico 0x3b7877 CLSExceptionRecordNSException + 3876983 9 Comico 0x3b742d CLSTerminateHandler() + 3875885 10 libc++abi.dylib 0x1c40f98f std::__terminate(void (*)()) + 78 11 libc++abi.dylib 0x1c40f493 __cxa_rethrow + 90 12 libobjc.A.dylib 0x1c41b1ab objc_exception_rethrow + 42 13 CoreFoundation 0x1d0a1231 CFRunLoopRunSpecific + 600 14 CoreFoundation 0x1d0a0fd1 CFRunLoopRunInMode + 104 15 GraphicsServices 0x1e84bb41 GSEventRunModal + 80 16 UIKit 0x22423a53 UIApplicationMain + 150 17 Comico 0x1a7765 main (main.m:19) 18 libdyld.dylib 0x1c88e4eb start + 2

    --

    Fatal Exception: NSMallocException 0 CoreFoundation 0x1d193b3d __exceptionPreprocess 1 libobjc.A.dylib 0x1c41b067 objc_exception_throw 2 Foundation 0x1dabe039 (Missing) 3 CoreFoundation 0x1d131949 __CFDataHandleOutOfMemory 4 CoreFoundation 0x1d131a67 __CFDataGrow 5 CoreFoundation 0x1d0c6527 CFDataSetLength 6 CoreGraphics 0x1e4744e7 CGDataProviderCopyData 7 SABlurImageView 0x1aac73b $SSo10CGImageRefa15SABlurImageViewE10blurEffectyABSg12CoreGraphics7CGFloatVF (UIImage+BlurEffect.swift:68) 8 SABlurImageView 0x1aa92d9 $S15SABlurImageViewAAC15addBlurEffectTo33_E3F09D82685A63C585E54EBCB00446B5LL_7boxSize11remainTimesSo7UIImageCAH_12CoreGraphics7CGFloatVSutF (UIImage+BlurEffect.swift:40) 9 SABlurImageView 0x1aa925f $S15SABlurImageViewAAC13addBlurEffect_5timesy12CoreGraphics7CGFloatV_SutFTo (SABlurImageView.swift:90) 10 Comico 0x1bfb4d -[NCForYouTableViewCell updateData:rankNumber:] (NCForYouTableViewCell.m:48) 11 Comico 0x3401d3 -[NCForYouRecommendViewController tableView:cellForRowAtIndexPath:] (NCForYouRecommendViewController.m:219) 12 UIKit 0x226edc13 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] 13 UIKit 0x226edde5 -[UITableView _createPreparedCellForGlobalRow:willDisplay:] 14 UIKit 0x226dbd79 -[UITableView _updateVisibleCellsNow:isRecursive:] 15 UIKit 0x226f28db -[UITableView _performWithCachedTraitCollection:] 16 UIKit 0x2249ef0f -[UITableView layoutSubviews] 17 UIKit 0x223bd483 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] 18 QuartzCore 0x20015cb7 -[CALayer layoutSublayers] 19 QuartzCore 0x20009d77 CA::Layer::layout_if_needed(CA::Transaction*) 20 QuartzCore 0x20009c05 CA::Layer::layout_and_display_if_needed(CA::Transaction*) 21 QuartzCore 0x1ff98839 CA::Context::commit_transaction(CA::Transaction*) 22 QuartzCore 0x1ffb6fdb CA::Transaction::commit() 23 QuartzCore 0x1ff268e3 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) 24 IOMobileFramebuffer 0x1f3cb1bf IOMobileFramebufferVsyncNotifyFunc 25 IOKit 0x1d3e4a7f IODispatchCalloutFromCFMessage 26 CoreFoundation 0x1d13cc19 __CFMachPortPerform 27 CoreFoundation 0x1d15065f CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION 28 CoreFoundation 0x1d14febd __CFRunLoopDoSource1 29 CoreFoundation 0x1d14deab __CFRunLoopRun 30 CoreFoundation 0x1d0a11af CFRunLoopRunSpecific 31 CoreFoundation 0x1d0a0fd1 CFRunLoopRunInMode 32 GraphicsServices 0x1e84bb41 GSEventRunModal 33 UIKit 0x22423a53 UIApplicationMain 34 Comico 0x1a7765 main (main.m:19) 35 libdyld.dylib 0x1c88e4eb start

    #0. Crashed: com.twitter.crashlytics.ios.exception 0 Comico 0x3b93a9 CLSProcessRecordAllThreads + 3883945 1 Comico 0x3b93a9 CLSProcessRecordAllThreads + 3883945 2 Comico 0x3b9639 CLSProcessRecordAllThreads + 3884601 3 Comico 0x3acd89 CLSHandler + 3833225 4 Comico 0x3b804f __CLSExceptionRecord_block_invoke + 3878991 5 libdispatch.dylib 0x1c861783 _dispatch_client_callout + 22 6 libdispatch.dylib 0x1c86da35 _dispatch_barrier_sync_f_invoke + 50 7 Comico 0x3b7a4f CLSExceptionRecord + 3877455 8 Comico 0x3b7877 CLSExceptionRecordNSException + 3876983 9 Comico 0x3b742d CLSTerminateHandler() + 3875885 10 libc++abi.dylib 0x1c40f98f std::__terminate(void (*)()) + 78 11 libc++abi.dylib 0x1c40f493 __cxa_rethrow + 90 12 libobjc.A.dylib 0x1c41b1ab objc_exception_rethrow + 42 13 CoreFoundation 0x1d0a1231 CFRunLoopRunSpecific + 600 14 CoreFoundation 0x1d0a0fd1 CFRunLoopRunInMode + 104 15 GraphicsServices 0x1e84bb41 GSEventRunModal + 80 16 UIKit 0x22423a53 UIApplicationMain + 150 17 Comico 0x1a7765 main (main.m:19) 18 libdyld.dylib 0x1c88e4eb start + 2

    #1. com.nhnent.appguardResponseQueue 0 libsystem_kernel.dylib 0x1c961e7c __semwait_signal + 24 1 libsystem_c.dylib 0x1c8b60e9 nanosleep + 168 2 libsystem_c.dylib 0x1c90510b sleep + 28 3 Comico 0x83bc8f UnityGetGLViewController + 3880610 4 libdispatch.dylib 0x1c861797 _dispatch_call_block_and_release + 10 5 libdispatch.dylib 0x1c86e59d _dispatch_queue_serial_drain + 854 6 libdispatch.dylib 0x1c864b71 _dispatch_queue_invoke + 886 7 libdispatch.dylib 0x1c86ea1f _dispatch_queue_override_invoke + 282 8 libdispatch.dylib 0x1c8701b5 _dispatch_root_queue_drain + 326 9 libdispatch.dylib 0x1c87000f _dispatch_worker_thread3 + 106 10 libsystem_pthread.dylib 0x1ca1687d _pthread_wqthread + 1040 11 libsystem_pthread.dylib 0x1ca1645c start_wqthread + 8

    #2. com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x1c94c900 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x1c94c6e1 mach_msg + 44 2 CoreFoundation 0x1d14fbe3 __CFRunLoopServiceMachPort + 144 3 CoreFoundation 0x1d14e065 __CFRunLoopRun + 1436 4 CoreFoundation 0x1d0a11af CFRunLoopRunSpecific + 470 5 CoreFoundation 0x1d0a0fd1 CFRunLoopRunInMode + 104 6 Foundation 0x1d9f5af5 + 258 7 Foundation 0x1da1276d + 86 8 UIKit 0x22d24ad9 -[UIEventFetcher threadMain] + 128 9 Foundation 0x1dad98eb + 1122 10 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 11 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 12 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #3. Thread 0 libsystem_kernel.dylib 0x1c961808 __psynch_cvwait + 24 1 libsystem_pthread.dylib 0x1ca17c43 _pthread_cond_wait + 560 2 libsystem_pthread.dylib 0x1ca18fc5 pthread_cond_wait + 38 3 Foundation 0x1da3f561 + 194 4 Comico 0x8ba357 -[NeloBlockQueue dequeue_network] + 42034 5 Comico 0x8c7357 +[TLCLog performanceSendThread:] + 95282 6 Foundation 0x1dad98eb + 1122 7 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 8 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 9 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #4. Thread 0 libsystem_kernel.dylib 0x1c961808 __psynch_cvwait + 24 1 libsystem_pthread.dylib 0x1ca17c43 _pthread_cond_wait + 560 2 libsystem_pthread.dylib 0x1ca18fc5 pthread_cond_wait + 38 3 Foundation 0x1da3f561 + 194 4 Comico 0x8ba06b -[NeloBlockQueue dequeue_handler] + 41286 5 Comico 0x8c86d5 +[TLCLog performanceThread:] + 100272 6 Foundation 0x1dad98eb + 1122 7 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 8 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 9 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #5. com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x1c94c900 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x1c94c6e1 mach_msg + 44 2 CoreFoundation 0x1d14fbe3 __CFRunLoopServiceMachPort + 144 3 CoreFoundation 0x1d14e065 __CFRunLoopRun + 1436 4 CoreFoundation 0x1d0a11af CFRunLoopRunSpecific + 470 5 CoreFoundation 0x1d0a0fd1 CFRunLoopRunInMode + 104 6 CFNetwork 0x1d77e393 +[NSURLConnection(Loader) _resourceLoadLoop:] + 402 7 Foundation 0x1dad98eb + 1122 8 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 9 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 10 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #6. com.twitter.crashlytics.ios.MachExceptionServer 0 libsystem_kernel.dylib 0x1c94c900 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x1c94c6e1 mach_msg + 44 2 Comico 0x3a88a3 CLSMachExceptionServer + 3815587 3 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 4 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 5 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #7. APAPIThread 0 libsystem_kernel.dylib 0x1c961808 __psynch_cvwait + 24 1 libsystem_pthread.dylib 0x1ca17c73 _pthread_cond_wait + 608 2 libsystem_pthread.dylib 0x1ca17a0f pthread_cond_timedwait_relative_np + 16 3 Foundation 0x1d9fef57 + 286 4 Foundation 0x1d9fc54b + 90 5 Comico 0x8d9e37 -[Queue newPullWithTimeout:] (Queue.m:70) 6 Comico 0x8e92cf -[APAPIThread main] (APEventLoop.m:1020) 7 Foundation 0x1dad98eb + 1122 8 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 9 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 10 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #8. APEventThread 0 libsystem_kernel.dylib 0x1c961808 __psynch_cvwait + 24 1 libsystem_pthread.dylib 0x1ca17c73 _pthread_cond_wait + 608 2 libsystem_pthread.dylib 0x1ca17a0f pthread_cond_timedwait_relative_np + 16 3 Foundation 0x1d9fef57 + 286 4 Foundation 0x1d9fc54b + 90 5 Comico 0x8d9e37 -[Queue newPullWithTimeout:] (Queue.m:70) 6 Comico 0x8e6cb5 -[APEventThread nextEvent:] (APEventLoop.m:369) 7 Comico 0x8e852b -[APEventThread waitForResponse] (APEventLoop.m:783) 8 Comico 0x8e66cd -[APEventThread main] (APEventLoop.m:175) 9 Foundation 0x1dad98eb + 1122 10 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 11 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 12 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #9. Thread 0 libsystem_kernel.dylib 0x1c961808 __psynch_cvwait + 24 1 libsystem_pthread.dylib 0x1ca17c43 _pthread_cond_wait + 560 2 libsystem_pthread.dylib 0x1ca18fc5 pthread_cond_wait + 38 3 Foundation 0x1da3f561 + 194 4 Comico 0x82a25d -[RequestRecordThread run] (RequestRecordThread.m:39) 5 Foundation 0x1dad98eb + 1122 6 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 7 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 8 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #10. Thread 0 libsystem_kernel.dylib 0x1c94c950 semaphore_wait_trap + 8 1 libdispatch.dylib 0x1c87291f _os_semaphore_wait + 16 2 libdispatch.dylib 0x1c872093 _dispatch_semaphore_wait_slow + 76 3 Comico 0x82a8f7 -[InterruptibleWait wait] (InterruptibleWait.m:22) 4 Comico 0x8345ef -[SqlRequestQueue waitForRequestData] (SqlRequestQueue.m:40) 5 Comico 0x8290b3 -[RequestWorkerThread run] (RequestWorkerThread.m:58) 6 Foundation 0x1dad98eb + 1122 7 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 8 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 9 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #11. Thread 0 libsystem_kernel.dylib 0x1c961808 __psynch_cvwait + 24 1 libsystem_pthread.dylib 0x1ca17c43 _pthread_cond_wait + 560 2 libsystem_pthread.dylib 0x1ca18fc5 pthread_cond_wait + 38 3 libc++.1.dylib 0x1c3b3c57 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 118 4 JavaScriptCore 0x21008261 + 88 5 JavaScriptCore 0x210081e5 + 154 6 JavaScriptCore 0x210080ed + 18 7 JavaScriptCore 0x2100832f + 66 8 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 9 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 10 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #12. WebThread 0 libsystem_kernel.dylib 0x1c94c900 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x1c94c6e1 mach_msg + 44 2 CoreFoundation 0x1d14fbe3 __CFRunLoopServiceMachPort + 144 3 CoreFoundation 0x1d14e065 __CFRunLoopRun + 1436 4 CoreFoundation 0x1d0a11af CFRunLoopRunSpecific + 470 5 CoreFoundation 0x1d0a0fd1 CFRunLoopRunInMode + 104 6 WebCore 0x212bfce3 + 426 7 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 8 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 9 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #13. Thread 0 libsystem_kernel.dylib 0x1c961808 __psynch_cvwait + 24 1 libsystem_pthread.dylib 0x1ca17c43 _pthread_cond_wait + 560 2 libsystem_pthread.dylib 0x1ca18fc5 pthread_cond_wait + 38 3 Foundation 0x1da3f561 + 194 4 Comico 0x8b8001 -[NeloBlockQueue queueSize] + 32988 5 Comico 0x8c929f +[TLCLog logSendThread:] + 103290 6 Foundation 0x1dad98eb + 1122 7 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 8 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 9 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #14. WebCore: LocalStorage 0 libsystem_kernel.dylib 0x1c961808 __psynch_cvwait + 24 1 libsystem_pthread.dylib 0x1ca17c43 _pthread_cond_wait + 560 2 libsystem_pthread.dylib 0x1ca18fc5 pthread_cond_wait + 38 3 JavaScriptCore 0x20b09421 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 64 4 JavaScriptCore 0x20ff4cd3 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2058 5 WebKitLegacy 0x221089e3 + 114 6 WebKitLegacy 0x2210a9e5 + 104 7 WebKitLegacy 0x2210a323 + 128 8 JavaScriptCore 0x20b05713 + 136 9 JavaScriptCore 0x20b0567b + 12 10 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 11 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 12 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #15. WTF::AutomaticThread 0 libsystem_kernel.dylib 0x1c961808 __psynch_cvwait + 24 1 libsystem_pthread.dylib 0x1ca17c43 _pthread_cond_wait + 560 2 libsystem_pthread.dylib 0x1ca18fc5 pthread_cond_wait + 38 3 JavaScriptCore 0x20b09421 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 64 4 JavaScriptCore 0x20ff4cd3 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2058 5 JavaScriptCore 0x20d7ca53 + 172 6 JavaScriptCore 0x20d7adad + 150 7 JavaScriptCore 0x20d7bfa3 + 162 8 JavaScriptCore 0x20d7e1a7 + 10 9 JavaScriptCore 0x20fe729f + 314 10 JavaScriptCore 0x20b05713 + 136 11 JavaScriptCore 0x20b0567b + 12 12 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 13 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 14 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #16. com.nhnent.appguardResponseQueue 0 libsystem_kernel.dylib 0x1c961e7c __semwait_signal + 24 1 libsystem_c.dylib 0x1c8b60e9 nanosleep + 168 2 libsystem_c.dylib 0x1c90510b sleep + 28 3 Comico 0x83bc8f UnityGetGLViewController + 3880610 4 libdispatch.dylib 0x1c861797 _dispatch_call_block_and_release + 10 5 libdispatch.dylib 0x1c86e59d _dispatch_queue_serial_drain + 854 6 libdispatch.dylib 0x1c864b71 _dispatch_queue_invoke + 886 7 libdispatch.dylib 0x1c86ea1f _dispatch_queue_override_invoke + 282 8 libdispatch.dylib 0x1c8701b5 _dispatch_root_queue_drain + 326 9 libdispatch.dylib 0x1c87000f _dispatch_worker_thread3 + 106 10 libsystem_pthread.dylib 0x1ca1687d _pthread_wqthread + 1040 11 libsystem_pthread.dylib 0x1ca1645c start_wqthread + 8

    #17. Thread 0 libsystem_kernel.dylib 0x1c94c968 semaphore_timedwait_trap + 8 1 libdispatch.dylib 0x1c8729df _os_semaphore_timedwait + 70 2 libdispatch.dylib 0x1c87207f _dispatch_semaphore_wait_slow + 56 3 Comico 0x82a96b -[InterruptibleWait waitForSecond:] (InterruptibleWait.m:26) 4 Comico 0x82cb83 -[Thread waitForTermination:] (Thread.m:44) 5 Comico 0x838b1f -[HeartbeatThread run] (HeartbeatThread.m:64) 6 Foundation 0x1dad98eb + 1122 7 libsystem_pthread.dylib 0x1ca1893b _pthread_body + 216 8 libsystem_pthread.dylib 0x1ca1885d _pthread_start + 234 9 libsystem_pthread.dylib 0x1ca16468 thread_start + 8

    #18. Thread 0 libsystem_kernel.dylib 0x1c96273c __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1ca16745 _pthread_wqthread + 728 2 libsystem_pthread.dylib 0x1ca1645c start_wqthread + 8

    #19. Thread 0 libsystem_kernel.dylib 0x1c96273c __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1ca168eb _pthread_wqthread + 1150 2 libsystem_pthread.dylib 0x1ca1645c start_wqthread + 8

    #20. Thread 0 libsystem_kernel.dylib 0x1c96273c __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1ca16745 _pthread_wqthread + 728 2 libsystem_pthread.dylib 0x1ca1645c start_wqthread + 8

    #21. Thread 0 libsystem_kernel.dylib 0x1c96273c __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1ca168eb _pthread_wqthread + 1150 2 libsystem_pthread.dylib 0x1ca1645c start_wqthread + 8

    #22. Thread 0 libsystem_kernel.dylib 0x1c96273c __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1ca168eb _pthread_wqthread + 1150 2 libsystem_pthread.dylib 0x1ca1645c start_wqthread + 8

    #23. Thread 0 libsystem_kernel.dylib 0x1c96273c __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x1ca16745 _pthread_wqthread + 728 2 libsystem_pthread.dylib 0x1ca1645c start_wqthread + 8

    `

    Thanks for your support

    opened by KhoaND12 0
  • Animation

    Animation

    The transition of this code is really smooth, but this animates the whole view to full blur effect. I want only upto few float points

    [imageView startBlurAnimation:2.0f];

    So for that i am using this

    [UIView animateWithDuration:2.0f animations:^{
                [self.imageView blur:0.5f];
              }];
    

    but the animation is not smooth as the upper one. So there any way where i can achieve the smoothness of startBlurAnimation and blur upto 0.5f???

    opened by rahulbbit 0
  • Image constantly resizes on imageView.blur(percentage)

    Image constantly resizes on imageView.blur(percentage)

    I was trying out your pod today for some simple blur on an image. Unfortunately I came to some fairly major issues, maybe a little hard to explain but I think i've figured out the issue. I don't think the imageView is respecting the view contentMode (in my case 'Aspect Fit'), it works perfectly with 'Scale to fill' but will flicker between 'aspect fit' and 'scale to fill' as I adjust the percentage. I've copied your example code for the '0.0 to 1.0 parameter' example, so nothing strange in my code.

    Besides this I also came to these issues pretty fast:

    Crash when no image in imageView Crash if not configured with a boxsize first for animation

    opened by mrdavidrees 2
Owner
Taiki Suzuki
AbemaTV / University of Aizu 18th
Taiki Suzuki
Lightweight iOS Photo Blur App

Blurry Blurry is the go-to image blurring tool to help you apply beautiful blurs for your photos. It is perfect for creating wallpapers, backgrounds,

Andy 17 Nov 22, 2022
AZS - There are two frameworks in the pod file, you need to install them to work with the project

AZS There are two frameworks in the pod file, you need to install them to work w

Nikita12G 0 Jan 14, 2022
Zoomable - A container that allows you to zoom in and out of an image using only SwiftUI

Zoomable It is a container that allows you to zoom in and out of an image using

jasu 48 Nov 28, 2022
A lightweight 3D Linear Carousel with parallax effect

TGLParallaxCarousel A lightweight 3D Linear Carousel with parallax effect [GIF] Threedimensional & Normal mode Installation TGLParallaxCarousel is ava

Matteo Tagliafico 440 Dec 17, 2022
Ken Burns effect with face recognition!

APKenBurnsView Ken Burns effect with face recognition! APKenBurnsView is UIView subclass which supports face recognition to beautifully animate people

Alty 96 Sep 3, 2022
The repository for a command line / build pipeline tool for generating colors from a human-readable text file that designers can also use.

ColorPaletteGenerator ColorPaletteGenerator is a tool that takes a human-readable input file describing a color palette, and generates the associated

horseshoe7 0 Dec 7, 2021
ThreeDCardView - Library that you can see images with a 3D card 🌌

?? ThreeDCardView Usage First you have to import 'ThreeDCardView' import 'ThreeDCardView' Create ThreeDCardView and set the frame let threeDCardView:T

Fomagran 4 Jul 9, 2022
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.

I've built out the Swift version of this library! Screenshots Description ABMediaView can display images, videos, as well as now GIFs and Audio! It su

Andrew Boryk 80 Dec 20, 2022
SwiftUI Image loading and Animation framework powered by SDWebImage

SDWebImageSwiftUI What's for SDWebImageSwiftUI is a SwiftUI image loading framework, which based on SDWebImage. It brings all your favorite features f

null 1.6k Jan 6, 2023
FlexibleImage is implemented with the hope that anyone could easily develop an app that provides features such as Camera Filter and Theme.

FlexibleImage is implemented with the hope that anyone could easily develop an app that provides features such as Camera Filter and Theme. When you wr

Jungwon An 815 Dec 30, 2022
Easily display images, animations, badges and alerts to your macOS application's dock icon

DSFDockTile Easily display images, animations, badges and alerts to your macOS application's dock icon. Why? I was inspired by Neil Sardesai after he

Darren Ford 45 Dec 2, 2022
A simplest & base on protocol & swifty way to browse photo or video with hero animation.

JFHeroBrowser Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements Installation JFHe

逸风 22 Dec 19, 2022
Script to support easily using Xcode Asset Catalog in Swift.

Misen Misen is a script to support using Xcode Asset Catalog in Swift. Features Misen scans sub-directories in the specified Asset Catalog and creates

Kazunobu Tasaka 123 Jun 29, 2022
Shows your photo library grouped by events, to easily export them to your computer

Groupir Shows your photo library grouped by events, to easily export them to your computer Features Currently supported features: reading your photo l

Stanislas Chevallier 0 Dec 15, 2021
Easily Manage Graphics in Xcode Projects

Introduction Challenges Managing Graphic Assets Manually Create Multiple Sizes Store Generated Image Files What If You Had... Care-Free Graphic Manage

BrightDigit 116 Nov 14, 2022
AYImageKit is a Swift Library for Async Image Downloading, Show Name's Initials and Can View image in Separate Screen.

AYImageKit AYImageKit is a Swift Library for Async Image Downloading. Features Async Image Downloading. Can Show Text Initials. Can have Custom Styles

Adnan Yousaf 11 Jan 10, 2022
CameraButton - A simple camera button that can be used for photo and video capturing

CameraButton A simple camera button that can be used for photo and video capturi

Erik Drobne 9 Dec 22, 2022