Answer the question
In order to leave comments, you need to log in
Swift connoisseurs, how do you deal with a monolith in an application?
I decided to write an application for macOS, iOS.
Prior to that, I had experience in developing for PHP, JAVA (Android)
Class namespace. Habitual thing (files arranged in folders)
java
package com.example.myapplication;
public class MainActivity extends AppCompatActivity{}
php
namespace Antson\IcqBot;
class Client
Answer the question
In order to leave comments, you need to log in
Look towards local SPM packages . Partially solves the problem.
There are no spaces or anything like that.
The quick answer is yes. It is necessary to create unique file names yourself (folders - only for the human convenience of perceiving the project). Because then - all the files will fall into one pile called a bundle. This bundle will then be signed, archived and distributed. If you later open the bundle as an archive, you will see all project files in the same folder, so the file name is unique.
And about the "monolith" - if you want to take out some functionality from the current project, for reuse, then - take it out to subs (libs) and connect it (functionality in the form of a lib) to the project.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question