Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8228291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:24:58+00:00 2026-06-07T16:24:58+00:00

I am not explicitly setting my sublayers’ opacity — only the superlayer’s via the

  • 0

I am not explicitly setting my sublayers’ opacity — only the superlayer’s via the opacity property. While the superlayer’s opacity does change as expected, my sublayers’ opacities also appear to change, causing elements below those sublayers within the superlayer to be exposed. Why might this be happening?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:24:59+00:00Added an answer on June 7, 2026 at 4:24 pm

    Why is this surprising you? What did you expect to happen? If you don’t want this, don’t put those sublayers inside that superlayer. Just put them on top of it (perhaps in a separate superlayer).


    EDIT: I understand your issue now. You’re running into a Core Animation optimization. Core Animation is trying to save time by just applying the opacity to all the sublayers prior to compositing. That way it can composite just one time (which lets it ignore the container superlayer). Most of the time this works out and improves performance.

    What you want it to do is all the compositing within the superlayer, then apply the opacity, and then re-composite the result with everything else. This is called rasterizing; which basically means “please turn me into a bitmap before you composite me with anything else.” You can request this by setting shouldRasterize on your superlayer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does the default destructor in C++ classes automatically delete members that are not explicitly
I want to check which port is used, when the port is not explicitly
In most examples that you find on the web when explicitly not using using,
when you use pigServer.registerFunction, you're not supposed to explicitly call pigServer.registerJar, but rather have
The @Resource annotation for a service is not injecting a subclass unless I explicitly
I want to duplicate a row, not the keys of course, without explicity using
Not ever sure if it can be done, but is it possible to use
Not crazy about the way Xcode 4.2 has laid out the files on disk.
Not able to download artifacts from central maven repository. <mirrors> <!-- mirror | Specifies
Not quite sure how to go about describing what it is I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.