When you start researching some vast topic in programming, the number of downloaded projects and created drafts gradually exceeds all conceivable and inconceivable limits. And then everything gets mixed up and lost. I seem to remember that you worked with it, but where, when? I tried to work in Playgrounds, but they, in my opinion, are not as stable as a regular project, the highlighting falls off, there is no way to do Debug normally. Recently, I started a single project to research SwiftUI, and I throw all small things there. This helps to keep everything in one place, besides, searching within the project is much more convenient. While SwiftUI provides Previews for quick viewing of the View and even allows you to debug them, it is still not always enough. I would also like to check on the device. And if you keep all these Views inside one project,SceneDelegate, which quickly gets tired. How cool it would be if we could see all of our test Views when we launch the application and be able to choose what to work with. Fantastic, you say? Not at all 🙂

The problem, I think, can be solved in more than one way. Offhand - to screw Sourcery, but it was interesting to solve it without auxiliary tools.

#статьи #ios #swift #для продолжающих #мобильная разработка

Личная поваренная книга SwiftUI-рецептов
1.55 GEEK