Re: CABasicAnimation in a view that's covered by another?

2016-11-23 Thread Eric E. Dolecki
29373893

On Wed, Nov 23, 2016 at 8:36 AM Eric E. Dolecki  wrote:

> Sure enough, I removed my delay and set my panel to an alpha of 0.99 - and
> the crossfade works as intended behind the view. This seems like a bug to
> me and I'll file it.
>
> On Tue, Nov 22, 2016 at 8:06 PM David Duncan 
> wrote:
>
> On Nov 22, 2016, at 1:22 PM, Eric E. Dolecki  wrote:
>
> If the panel is up covering the UIImageView and the cross-fade is called,
> and I bring the panel back down, exposing the UIImageView, the cross-fade
> did not take place, the image not updated. That's how I know.
>
> If I time the crossfade on closing the panel... a 10th of a second after
> the panel starts to move (thus exposing a tiny bit of the UIImageView
> before the crossfade), it works. How strange is this?
>
>
> Possible its a bug related to if the OS thinks that the image view needs
> to be drawn or not. If you give your panel alpha <1 does that resolve the
> issue as well? (If so, please file a bug).
>
>
> On Tue, Nov 22, 2016 at 1:57 PM David Duncan 
> wrote:
>
>
> > On Nov 22, 2016, at 7:26 AM, Eric E. Dolecki  wrote:
> >
> > I have a cross-fading album art thing happening. When I can see the
> > imageview it works fine, if it's totally covered by another view (a
> panel I
> > slide up), it seems to not change. Is this a known thing? Doesn't seem
> > right - I am trying to track down other related things to see.
>
> What do you mean by “seems to not change”? Can you see the view through
> the panel you slide up? If not, how can you tell what is going on?
>
> >
> >myfade = CABasicAnimation(keyPath: "contents")
> >myfade.duration = 0.4
> >myfade.fromValue = largeAlbumCover.image!.cgImage
> >myfade.toValue = artImage?.cgImage
> >myfade.delegate = self
> >largeAlbumCover.layer.add(myfade, forKey:
> "animateContents")
> >largeAlbumCover.image = artImage
> >
> > Thanks,
> > Eric
> > ___
> >
> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> >
> > Please do not post admin requests or moderator comments to the list.
> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> >
> > Help/Unsubscribe/Update your Subscription:
> >
> https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
> >
> > This email sent to david.dun...@apple.com
>
> --
> David Duncan
>
>
> --
> David Duncan
>
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CABasicAnimation in a view that's covered by another?

2016-11-23 Thread Eric E. Dolecki
Sure enough, I removed my delay and set my panel to an alpha of 0.99 - and
the crossfade works as intended behind the view. This seems like a bug to
me and I'll file it.

On Tue, Nov 22, 2016 at 8:06 PM David Duncan  wrote:

> On Nov 22, 2016, at 1:22 PM, Eric E. Dolecki  wrote:
>
> If the panel is up covering the UIImageView and the cross-fade is called,
> and I bring the panel back down, exposing the UIImageView, the cross-fade
> did not take place, the image not updated. That's how I know.
>
> If I time the crossfade on closing the panel... a 10th of a second after
> the panel starts to move (thus exposing a tiny bit of the UIImageView
> before the crossfade), it works. How strange is this?
>
>
> Possible its a bug related to if the OS thinks that the image view needs
> to be drawn or not. If you give your panel alpha <1 does that resolve the
> issue as well? (If so, please file a bug).
>
>
> On Tue, Nov 22, 2016 at 1:57 PM David Duncan 
> wrote:
>
>
> > On Nov 22, 2016, at 7:26 AM, Eric E. Dolecki  wrote:
> >
> > I have a cross-fading album art thing happening. When I can see the
> > imageview it works fine, if it's totally covered by another view (a
> panel I
> > slide up), it seems to not change. Is this a known thing? Doesn't seem
> > right - I am trying to track down other related things to see.
>
> What do you mean by “seems to not change”? Can you see the view through
> the panel you slide up? If not, how can you tell what is going on?
>
> >
> >myfade = CABasicAnimation(keyPath: "contents")
> >myfade.duration = 0.4
> >myfade.fromValue = largeAlbumCover.image!.cgImage
> >myfade.toValue = artImage?.cgImage
> >myfade.delegate = self
> >largeAlbumCover.layer.add(myfade, forKey:
> "animateContents")
> >largeAlbumCover.image = artImage
> >
> > Thanks,
> > Eric
> > ___
> >
> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> >
> > Please do not post admin requests or moderator comments to the list.
> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> >
> > Help/Unsubscribe/Update your Subscription:
> >
> https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
> >
> > This email sent to david.dun...@apple.com
>
> --
> David Duncan
>
>
> --
> David Duncan
>
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CABasicAnimation in a view that's covered by another?

2016-11-22 Thread David Duncan

> On Nov 22, 2016, at 1:22 PM, Eric E. Dolecki  wrote:
> 
> If the panel is up covering the UIImageView and the cross-fade is called, and 
> I bring the panel back down, exposing the UIImageView, the cross-fade did not 
> take place, the image not updated. That's how I know.
> 
> If I time the crossfade on closing the panel... a 10th of a second after the 
> panel starts to move (thus exposing a tiny bit of the UIImageView before the 
> crossfade), it works. How strange is this?

Possible its a bug related to if the OS thinks that the image view needs to be 
drawn or not. If you give your panel alpha <1 does that resolve the issue as 
well? (If so, please file a bug).

> 
> On Tue, Nov 22, 2016 at 1:57 PM David Duncan  > wrote:
> 
> > On Nov 22, 2016, at 7:26 AM, Eric E. Dolecki  > > wrote:
> >
> > I have a cross-fading album art thing happening. When I can see the
> > imageview it works fine, if it's totally covered by another view (a panel I
> > slide up), it seems to not change. Is this a known thing? Doesn't seem
> > right - I am trying to track down other related things to see.
> 
> What do you mean by “seems to not change”? Can you see the view through the 
> panel you slide up? If not, how can you tell what is going on?
> 
> >
> >myfade = CABasicAnimation(keyPath: "contents")
> >myfade.duration = 0.4
> >myfade.fromValue = largeAlbumCover.image!.cgImage
> >myfade.toValue = artImage?.cgImage
> >myfade.delegate = self
> >largeAlbumCover.layer.add(myfade, forKey: "animateContents")
> >largeAlbumCover.image = artImage
> >
> > Thanks,
> > Eric
> > ___
> >
> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com 
> > )
> >
> > Please do not post admin requests or moderator comments to the list.
> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com 
> > 
> >
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com 
> > 
> >
> > This email sent to david.dun...@apple.com 
> 
> --
> David Duncan
> 

--
David Duncan

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CABasicAnimation in a view that's covered by another?

2016-11-22 Thread Eric E. Dolecki
If the panel is up covering the UIImageView and the cross-fade is called,
and I bring the panel back down, exposing the UIImageView, the cross-fade
did not take place, the image not updated. That's how I know.

If I time the crossfade on closing the panel... a 10th of a second after
the panel starts to move (thus exposing a tiny bit of the UIImageView
before the crossfade), it works. How strange is this?

On Tue, Nov 22, 2016 at 1:57 PM David Duncan  wrote:

>
> > On Nov 22, 2016, at 7:26 AM, Eric E. Dolecki  wrote:
> >
> > I have a cross-fading album art thing happening. When I can see the
> > imageview it works fine, if it's totally covered by another view (a
> panel I
> > slide up), it seems to not change. Is this a known thing? Doesn't seem
> > right - I am trying to track down other related things to see.
>
> What do you mean by “seems to not change”? Can you see the view through
> the panel you slide up? If not, how can you tell what is going on?
>
> >
> >myfade = CABasicAnimation(keyPath: "contents")
> >myfade.duration = 0.4
> >myfade.fromValue = largeAlbumCover.image!.cgImage
> >myfade.toValue = artImage?.cgImage
> >myfade.delegate = self
> >largeAlbumCover.layer.add(myfade, forKey:
> "animateContents")
> >largeAlbumCover.image = artImage
> >
> > Thanks,
> > Eric
> > ___
> >
> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> >
> > Please do not post admin requests or moderator comments to the list.
> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> >
> > Help/Unsubscribe/Update your Subscription:
> >
> https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
> >
> > This email sent to david.dun...@apple.com
>
> --
> David Duncan
>
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: CABasicAnimation in a view that's covered by another?

2016-11-22 Thread David Duncan

> On Nov 22, 2016, at 7:26 AM, Eric E. Dolecki  wrote:
> 
> I have a cross-fading album art thing happening. When I can see the
> imageview it works fine, if it's totally covered by another view (a panel I
> slide up), it seems to not change. Is this a known thing? Doesn't seem
> right - I am trying to track down other related things to see.

What do you mean by “seems to not change”? Can you see the view through the 
panel you slide up? If not, how can you tell what is going on?

> 
>myfade = CABasicAnimation(keyPath: "contents")
>myfade.duration = 0.4
>myfade.fromValue = largeAlbumCover.image!.cgImage
>myfade.toValue = artImage?.cgImage
>myfade.delegate = self
>largeAlbumCover.layer.add(myfade, forKey: "animateContents")
>largeAlbumCover.image = artImage
> 
> Thanks,
> Eric
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
> 
> This email sent to david.dun...@apple.com

--
David Duncan


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

CABasicAnimation in a view that's covered by another?

2016-11-22 Thread Eric E. Dolecki
I have a cross-fading album art thing happening. When I can see the
imageview it works fine, if it's totally covered by another view (a panel I
slide up), it seems to not change. Is this a known thing? Doesn't seem
right - I am trying to track down other related things to see.

myfade = CABasicAnimation(keyPath: "contents")
myfade.duration = 0.4
myfade.fromValue = largeAlbumCover.image!.cgImage
myfade.toValue = artImage?.cgImage
myfade.delegate = self
largeAlbumCover.layer.add(myfade, forKey: "animateContents")
largeAlbumCover.image = artImage

Thanks,
Eric
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com