TSMessages icon indicating copy to clipboard operation
TSMessages copied to clipboard

iOS7: no alpha and no blur effect

Open ricardopereira opened this issue 11 years ago • 20 comments

I tested it on the simulator with iOS 7.1 beta 5.

ios simulator screen shot 14 feb 2014 12 21 39

ricardopereira avatar Feb 14 '14 12:02 ricardopereira

That's a known issue occuring since iOS 7.0.3.

TSMessages currently tricks the blurring by using the UIToolbars layer for doing the blur, but Apple changed their implementation so that the effect is not like what you see in the README anymore.

dennisreimann avatar Feb 15 '14 06:02 dennisreimann

LFGlassView looks to be a well-maintained replacement: https://github.com/radi/LiveFrost

getaaron avatar Feb 15 '14 17:02 getaaron

Yes, the blur implementation is still old and needs to be replaced.

KrauseFx avatar Feb 16 '14 10:02 KrauseFx

@getaaron I already started to work on this, based on Apples UIImage+ImageEffect category, see dennisreimann/TSMessages@8b629e5395a01ccad7d8f1498b0cbc2402359eda

However this solution works only for static blur effects and we'd need something dynamic, so that it works in conjunction with scrollviews underneath the messages. I think FXBlurView would also be a good option here, but refrained from adding it, because I did not want to introduce a dependency.

@KrauseFx What's your take on this?

dennisreimann avatar Feb 16 '14 11:02 dennisreimann

@dennisreimann Another dependency is fine I guess. It's better than copying the files or implementing our own blur. Is there any big disadvantage of a new dependency?

KrauseFx avatar Feb 17 '14 08:02 KrauseFx

No, but I just wanted to talk to you about that beforehand. I'd roll with the most popular library for that then, so that there's a chance for it being already a dependency of a project where TSMessages is also used in.

dennisreimann avatar Feb 17 '14 08:02 dennisreimann

Any news on this? Haven't support blur effect yet?

zhuhuihuihui avatar Feb 24 '14 09:02 zhuhuihuihui

I'm currently adding this on the develop branch as we plan to include it in version 1.0

dennisreimann avatar Feb 24 '14 09:02 dennisreimann

I will fix this in 0.X

mRs- avatar Apr 03 '14 13:04 mRs-

any progress on the UIToolbar remplacement ? It seems that Apple has started to reject app with the UIToolbar "hack".

http://www.quora.com/IOS-Development-Will-Apple-really-reject-my-app-if-I-use-this-trick-to-implement-blur-view

@dennisreimann It seems that you've worked with the apple shown implementation. Will you pull request it on the development branch soon ?

Thanks for your great job. I love the elegancy of use of TSMessages. Matthieu

thieu75 avatar Apr 04 '14 15:04 thieu75

Sorry, didn't have the time to progress yet and I'm afraid I won't be able to implement this anytime soon.

dennisreimann avatar Apr 04 '14 15:04 dennisreimann

Ok thanks for your quick answer Dennis.

thieu75 avatar Apr 04 '14 15:04 thieu75

The main problem with the blur effect is, that apple only provide a static image blur…

When we implement the TSMessage over a UIScrollView there would only be a snapshot of the current position and no updates if the user modify the position of the scrollview.

My current solution is to drop the blur effect for iOS 7, because apple is not willing to share the live image blur till now and revamp the basic colors of the current version to blend the ui better in iOS7.

mRs- avatar Apr 29 '14 08:04 mRs-

@dennisreimann what's your opinion here?

mRs- avatar May 09 '14 11:05 mRs-

@mRs- I think this is a pragmatic approach to handle it. I had my fair share of trying to make this work and couldn't find a solution I was content with.

With the changes that are on the current develop branches, users would at least get access to the message view, so they could implement a blurring solution themselves if they need to.

dennisreimann avatar May 09 '14 11:05 dennisreimann

+1 @dennisreimann I've done exactly this. Use the develop branch and substitute the Uitoolbar by a simple plain UIView. The API has changed but accessing the TSMessageView is quite practical ! Thanks

thieu75 avatar May 09 '14 14:05 thieu75

any updates on this?

cytryn avatar Mar 05 '15 01:03 cytryn

Hi! I would also like to know if there is any news on this one. I was amazed with the way it looked in the READ ME and am trying to make the same effect but can't.

nunogoncalves avatar Apr 17 '15 11:04 nunogoncalves

@nunogoncalves Do you need support for iOS7?

ricardopereira avatar Apr 17 '15 11:04 ricardopereira

@ricardopereira IOS 8

nunogoncalves avatar Apr 17 '15 12:04 nunogoncalves