|
Re: Layers and shadows. Is it possible to have a layer with a shadow and no background color?
What about using black or white at a very low alpha, like .01%?
Steve via iPad
What about using black or white at a very low alpha, like .01%?
Steve via iPad
|
By
Steve Mills
·
#1388
·
|
|
Layers and shadows. Is it possible to have a layer with a shadow and no background color?
In my experiments, I noticed that if you simply create a layer for a view and attempt to add a shadow, nothing appears.
Unless some color is applied to the border or the backgroundColor of the layer,
In my experiments, I noticed that if you simply create a layer for a view and attempt to add a shadow, nothing appears.
Unless some color is applied to the border or the backgroundColor of the layer,
|
By
Alex Zavatone
·
#1387
·
|
|
Obtaining a bitmask or an alpha channel for a UIView.
Is anyone aware of a process to scan a UIView and obtain its alpha channel or bit mask used for compositing?
I’m looking for this to create shadows in the shape of the contents of the non
Is anyone aware of a process to scan a UIView and obtain its alpha channel or bit mask used for compositing?
I’m looking for this to create shadows in the shape of the contents of the non
|
By
Alex Zavatone
·
#1386
·
|
|
Re: SplitViewController with 3 Columns - What am I missing??
One more thing:
This problem isn't unique to Xcode 13 or iOS 15. If I set the deployment target back to iOS 14 and open with Xcode 12.5, I get the same behavior.
One more thing:
This problem isn't unique to Xcode 13 or iOS 15. If I set the deployment target back to iOS 14 and open with Xcode 12.5, I get the same behavior.
|
By
Rick Aurbach
·
#1385
·
|
|
SplitViewController with 3 Columns - What am I missing??
Xcode 13ß1, deploying to iOS 15, UIKit using Storyboards.
I have a tab bar controller which (for one of its tabs) contains a split view controller. The split view controller is configured in the
Xcode 13ß1, deploying to iOS 15, UIKit using Storyboards.
I have a tab bar controller which (for one of its tabs) contains a split view controller. The split view controller is configured in the
|
By
Rick Aurbach
·
#1384
·
|
|
Re: Adding multiple shadows to a UIView in either Objective-C or Swift
Well, it sure is an important detail. If no color is added or if you use a clear color, you get no shadow.
I did find a sort of a solution though and this works as long as you don’t have a
Well, it sure is an important detail. If no color is added or if you use a clear color, you get no shadow.
I did find a sort of a solution though and this works as long as you don’t have a
|
By
Alex Zavatone
·
#1383
·
|
|
Re: Adding multiple shadows to a UIView in either Objective-C or Swift
In past code, I've used the behavior that layers will render a shadow whose strength is in accord with the opacity of the fill color. 0 opacity (clearColor) gives no shadow at all.
I think you may be
In past code, I've used the behavior that layers will render a shadow whose strength is in accord with the opacity of the fill color. 0 opacity (clearColor) gives no shadow at all.
I think you may be
|
By
Carl Hoefs
·
#1382
·
|
|
Re: Adding multiple shadows to a UIView in either Objective-C or Swift
Apparently, layers do now render shadows at all if the layer is of clearColor.
There is a second layer in the image below, but no shadow.
Now, how to work around that?
Apparently, layers do now render shadows at all if the layer is of clearColor.
There is a second layer in the image below, but no shadow.
Now, how to work around that?
|
By
Alex Zavatone
·
#1381
·
|
|
Adding multiple shadows to a UIView in either Objective-C or Swift
Has any one of of us successfully done this? We’ve been trying to do this with CALayers for days now and it’s been monumentally unsuccessful.
Either we get one shadow on one layer and no shadows
Has any one of of us successfully done this? We’ve been trying to do this with CALayers for days now and it’s been monumentally unsuccessful.
Either we get one shadow on one layer and no shadows
|
By
Alex Zavatone
·
#1380
·
|
|
Network Server Shares
Did Apple kill access to /Network/Applications and /Network/Library shares published from macos server?
Testing Mojave (yes this is old stuff) and I don’t see these shares that are published from
Did Apple kill access to /Network/Applications and /Network/Library shares published from macos server?
Testing Mojave (yes this is old stuff) and I don’t see these shares that are published from
|
By
Sandor Szatmari
·
#1379
·
|
|
Re: Exception not being caught in try statement
Hi all,
Thanks to everyone for their suggestions. I spent far too much time working around this bug, but have finally got to the bottom of the original issue.
It turns out this is a known issue with
Hi all,
Thanks to everyone for their suggestions. I spent far too much time working around this bug, but have finally got to the bottom of the original issue.
It turns out this is a known issue with
|
By
Mark Allan
·
#1378
·
|
|
Re: What is the best strategy for this?
This piqued my curiosity, so I couldn't help myself and built a test case. This seems to work perfectly -- and no collection view required. The code is short enough that I've copy/pasted it all
This piqued my curiosity, so I couldn't help myself and built a test case. This seems to work perfectly -- and no collection view required. The code is short enough that I've copy/pasted it all
|
By
Ben Kennedy
·
#1377
·
|
|
Re: What is the best strategy for this?
Yes, so why not transform the collection view as a whole (not the cells)?
-ben
Yes, so why not transform the collection view as a whole (not the cells)?
-ben
|
By
Ben Kennedy
·
#1376
·
|
|
Re: What is the best strategy for this?
It would be interesting to try out. Try removing the spaces between each cell and issue the rotation, then try it out and find out.
Alex Zavatone
It would be interesting to try out. Try removing the spaces between each cell and issue the rotation, then try it out and find out.
Alex Zavatone
|
By
Alex Zavatone
·
#1375
·
|
|
Re: What is the best strategy for this?
It's an interesting idea, but there's an added complication (which I apologize for not making explicit in the original post) which makes this problematic. Each of these objects is a cell in a
It's an interesting idea, but there's an added complication (which I apologize for not making explicit in the original post) which makes this problematic. Each of these objects is a cell in a
|
By
Rick Aurbach
·
#1374
·
|
|
Re: What is the best strategy for this?
Perhaps this is naïve, but the first thing that comes to mind: could you not simply deal with it as a regular matrix of squares, and then apply a 45 degree transform on the view?
(I haven't tested
Perhaps this is naïve, but the first thing that comes to mind: could you not simply deal with it as a regular matrix of squares, and then apply a 45 degree transform on the view?
(I haven't tested
|
By
Ben Kennedy
·
#1373
·
|
|
What is the best strategy for this?
Problem: I am designing a collection view with overlapping cells. Each cell has an active area inside it (and the active areas of adjacent cells do not overlap). (More information about what I'm doing
Problem: I am designing a collection view with overlapping cells. Each cell has an active area inside it (and the active areas of adjacent cells do not overlap). (More information about what I'm doing
|
By
Rick Aurbach
·
#1372
·
|
|
Re: Compiler error - method not found on object which conforms to protocol
Alex,
Thanks for your input.
Yes, the conforming class did have the method/property implemented.
Yes the compiler warns if the conforming class does not fully implement the protocol. And of course
Alex,
Thanks for your input.
Yes, the conforming class did have the method/property implemented.
Yes the compiler warns if the conforming class does not fully implement the protocol. And of course
|
By
Sandor Szatmari
·
#1371
·
|
|
Re: Compiler error - method not found on object which conforms to protocol
Hi. I’m late to the discussion, but have you put the property or method on the class?
When you have a class that conforms to a protocol, my understanding is that you cross your heart and swear to
Hi. I’m late to the discussion, but have you put the property or method on the class?
When you have a class that conforms to a protocol, my understanding is that you cross your heart and swear to
|
By
Alex Zavatone
·
#1370
·
|
|
Re: Compiler error - method not found on object which conforms to protocol
Thanks for everyone’s help and I’m sorry I was unable to share the code. I’m sure it would have been obvious and everyone would have see the issue with the actual code available.
It turns out
Thanks for everyone’s help and I’m sorry I was unable to share the code. I’m sure it would have been obvious and everyone would have see the issue with the actual code available.
It turns out
|
By
Sandor Szatmari
·
#1369
·
|