Open shirakaba opened 6 years ago
Honestly, since this is an iOS 10 issue, I'm gonna try to find the time to fix it, but it's a very low priority. What do you think?
Sorry for the very late response!
I would be very thankful if you could fix it if you might know how to do so, as I'm all out of ideas. If a solution is clear to you, I would encourage pursuing it if it's no bother. Otherwise, if it's a complete shot in the dark, then I can live with it affecting just older iOS users.
I've since seen another user for whom the shaded area becomes completely black, however, so I can add that the failure mode is both inconsistent and also very obstructive to introducing the interface.
Honestly I have a tight schedule now and too much to do, I can't find the time to work on fixing this. Let's leave it like this for now. Since this is happening on an older version of iOS, it's low priority for me.
Understood!
The UIBlurEffect is not applied, meaning that the shaded area for the tutorial is just a grey-tinted area. Without this blur, it is hard to read the tutorial texts when they are overlaying other texts.
Acknowledged on:
Apple Developer forums by staff member.
StackOverflow
The similar Swift-based Instructions repository, in an issue resolved by this giant commit.
Here are several of the recommendations made by Apple staff member Rincewind in that thread:
So I think he recommends making a class like this:
... However, I'm not sure how to migrate from
CALayer.mask
toUIView.maskView
(with the aforementionedShapeView
). I started trying to replace the relevant code after[tutorialView setNeedsDisplay]
, but I really don't know what I'm doing (not experienced in UI code):My code snippet compiles, but doesn't do anything useful (no blur, no masking of highlighted areas). Hopefully it can be of help as a starting point, though. The other starting point is the commit made in the Instructions repository, but it's rather big and hard to read through.