1. for now the structure is SheetStyle.Global/PlacePage/Font/TestColor...
2. the styles are used by assessing the property
before:
lineView.setStyleAndApply("Divider")
headerTitleLabel.setStyleAndApply("semibold18:blackPrimaryText")
after:
lineView.setStyleAndApply(.global(.divider))
headerTitleLabel.setFontStyle(.semibold18, color: .blackPrimary)
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
Also the issue for the PP VC in `traitCollectionDidChange` was fixed. It is needed to prevent PP reloading when the alert is presented over the screen. It happens because the new trait updates can be passed to the `traitCollectionDidChange` method on the every layout update and it cause the steps and layout recalculations. The PP should be reloaded only when the vertical size class is changed.
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
The separators that was created in the storyboards and xibs is very hard to find/select/edit/change width and color. This is why they should be configured and added programmatically.
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
1. remove the iCLoud's .Trash dir scanning because on ios this feature is blocked. This is why the `isRemoved` property was removed from the `MitadataItem`
2. runtime monitors sends only the added/updated/deleted items lists on didUpdate and the whole content on didFinishGathering
3. because of 1, when icloud is running - it is source of truth.
During the initial phase (1st enabling of enabling after disabling) all the data from the cloud and local dir will be preserved.
4. simplified the state manager's logic
5. improved logs
6. fixed test
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
The date formatter initialization is resource-intensive and all unnecessary instantiation are replaced with the call to one default static formatter.
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
- The `CoreApi-Swift.h` is a file that should be generated by the xcode to opens the swift classes
to the objc
- Custom hardcoded `CoreApi-swift.h` blocks this feature and contains objc headers. It blocks the autogeneration and don't allow to use the swift and objc classes in the same framework. This is why the file is removed and all the file's content is moved to the 'CoreApi.h'.
- The `Framework.h` can be used only but the objc so it is removed from the 'CoreApi.h' and is imported only when it's necessary
- `Defines Module` is set to NO because it should be set to YES only after the first swift file is added to the framework. In other case the bridging file will not be generated
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
When there are only the one additional button it will set as 4th instead of More in PP action bar
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
- increase grabber size
- move the share button to the PP's and Layers header trailing-top corner
- add a new color for the close/share icons on the pp
- crate a new button class with rounded image
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>