intloha.blogg.se

Xcode update stuck
Xcode update stuck






xcode update stuck
  1. #Xcode update stuck software#
  2. #Xcode update stuck code#

One thing I do notice while working in the software development industry is that some developers (mostly junior developers) find it difficult to differentiate a workaround and a solution. You wouldn’t want your fellow teammates to spend another 1 hour just to remove an image view rounded corners right? Therefore, we as developers should always strive for a solution when solving problems. Without a second thought, I hit on the ⌥⇧⌘↩ keys and this is what I see:Īs I mentioned earlier, a workaround is not a solution, workarounds are difficult to reason about and could easily break accidentally.

#Xcode update stuck code#

This is a very good sign because now I can leverage the Xcode code review feature to see the differences before and after the change. Surprisingly, the rounded corners are no longer there after the image view replacement! Let’s try to replace the image view in the interface builder with a new one and see what will happen. Since I do not have any idea where to start, the best starting point will be the image view.

xcode update stuck

Even with all those justifiable reasons, a workaround at its best is just a temporary solution, at the end of the day, a workaround will only increase the risk of introducing more bugs to your app.īearing that in mind, I decided to continue my investigation.īased on my previous investigation, if I am able to overwrite the image view corner radius in the cell’s awakeFromNib() method, it is very likely that the rounded corners are caused by some unknown configurations within the interface builder. In my opinion, a workaround should only be used when we can’t find a solution, or it is not possible to implement the solution due to justifiable reasons such as time constraints or technical depth. But to me, this is just a workaround and not a true solution. Some developers might say that the problem is considered fixed, let’s move on to another task. Now I am at a stage where I feel like I have fixed my problem, but in reality, I still have no idea what is the root cause of my problem. This is the point where I see a ray of hope, the image view rounded corners are finally gone! 🎉

xcode update stuck

Let’s do that in the cell’s awakeFromNib() method and see what will happen. Now that I am back to where I started, what else can I do? I can’t find the place where the corner radius is set, but maybe I can try to overwrite the image view corner radius and set it back to 0. And once again, I am disappointed (but not surprised) that the image view does not show any red color corners. If the source image itself has rounded corners, I should be able to see the image view red color corners. With that in mind, I changed the image view background color from. I ask myself, is it possible the rounded corners that I see have nothing to do with the image view? Will it be that the source image itself has rounded corners? Let’s find out.

xcode update stuck

One thing that I have learned as a developer is always trying to think out of the box when getting stuck in a problem. Unfortunately, there is still no sign of a corner radius being set.Īnother possibility that I can think of is that the image view is a custom image view, but when I check the class field in interface builder, all I see is this just UIImageView.Īnd now I am stuck! What else could it possibly be? Maybe the corner radius is being set in the view controller? Let’s check the collectionView(_:cellForItemAt:) implementation. Just look for within the cell implementation, remove it, then jobs done!īut wait… there is no such code found within the cell implementation! 🤨 I am sure any experienced iOS developers out there will have the same first thought as me: “How hard could this be?”. To give you some context, the image view is inside a collection view cell and the cell is created using the interface builder. I hope at the end of the story, other developers, especially those who just got started can get some inspiration from it.Ī few weeks back, I was given a task to update a legacy UI, and part of it involves removing an image view rounded corners. The story that I am about to share with you does not involve any extraordinary programming knowledge, but I do like to use this story to bring out some of my views regarding the matter and the attitude that developers should have when solving problems. I am sure most fellow developers out there will have a similar experience where you have to spend an unreasonable amount of time just to complete a simple task, and this is one of those stories. This is a story about me spending 1 hour just to remove an UIImageView rounded corners.








Xcode update stuck