I've been struggling with what must be a simple issue for days, and are now extremely frustrated. I'd like to integrate a photo into a view with other UI elements and have the other elements adapt around the photo's intrinsic shape - landscape, portrait, square or whatever the original dimensions are. While this is my specific problem of the hour, I'd like to ask a broader question about how to solve these problems from the available documentation.
I'm fairly new to developing in Swift - I've been trying to learn it for about 18 months now, mostly through tutorials. It's not my first language. 've done the Stanford CS193p course online, and have Ray Wenderlich's books and tutorials behind me. As I try to do my own thing for the first time, I keep hitting things I want to do, but that weren't covered exactly the same way in any of the examples - which is to be expected. Other people rave about the documentation from Apple, but I'm finding it inaccessible in three main ways. Firstly, I don't know where to start! From my perspective, I have a requirement; while the documentation's perspective is 'I have a method', which meets the requirement. This makes it really hard to search or browse because while I know my requirement, I've no idea what methods or class of methods to look in. Secondly, it feels like there is a massive gap between learning and doing, or between examples and creating. The methods in the Apple documentation very rarely contain example code to understand exactly how they are implemented, or worse, contain Obj-c code, which I can understand a bit - just enough to get it wrong and add to the confusion. Finally, there is so much information out there, on Stack Exchange, for example, that it becomes overwhelming sometimes. Instead of solving issues, it sometimes adds to the confusion.
My question is basically, can you show me how to solve this problem by teaching me how to use the Apple documentation.