You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/tutorials/async-await.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
`async/await` is a new approach for working with multithreading in Swift. It simplifies writing complex call chains and makes code readable. First the theory, and at the end of the tutorial we'll write a tool to search for apps in the App Store using `async/await`.
Copy file name to clipboardExpand all lines: en/tutorials/drag-and-drop-part-1.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ We'll learn how to reorder cells, drag and drop multiple cells, move cells betwe
2
2
3
3
In this part, we'll cover dragging and dropping for collections and tables. In the next part, we'll see how to drag any views anywhere and handle resetting them. Before we dive, let's break down how the drag and drop lifecycle is designed.
Copy file name to clipboardExpand all lines: en/tutorials/edge-insets-uibutton.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
You control three indentations - `imageEdgeInsets`, `titleEdgeInsets` and `contentEdgeInsets`. More often than not, your task comes down to setting symmetrical-opposite values.
2
2
3
-
Before we dive in, take a look at [example project](https://cdn.ivanvorobei.by/websites/sparrowcode.io/edge-insets-uibutton/example-project.zip). Each slider is responsible for a specific indent and you can combine them. In the video I set the background color to red, the icon color to yellow, and the title color to blue.
3
+
Before we dive in, take a look at [example project](https://cdn.ivanvorobei.io/websites/sparrowcode.io/edge-insets-uibutton/example-project.zip). Each slider is responsible for a specific indent and you can combine them. In the video I set the background color to red, the icon color to yellow, and the title color to blue.
4
4
5
-
[Edge Insets UIButton Example Project Preview](https://cdn.ivanvorobei.by/websites/sparrowcode.io/edge-insets-uibutton/edge-insets-uibutton-example-preview.mov)
5
+
[Edge Insets UIButton Example Project Preview](https://cdn.ivanvorobei.io/websites/sparrowcode.io/edge-insets-uibutton/edge-insets-uibutton-example-preview.mov)
6
6
7
7
Indent between the header and the icon `10pt`. When you get it, make sure you control the result or it's random. At the end of the tutorial you'll know how it works.
Indentations have been added around the content. They are added proportionally and affect only the size of the button. The practical sense is to expand the clickable area if the button is small.
24
24
@@ -28,7 +28,7 @@ I put them in one section for a reason. More often than not, the task will boil
28
28
29
29
Let's add an indent between the picture and the header, let's say `10pt`. The first idea is to add an indent through the property `imageEdgeInsets`:
30
30
31
-
[imageEdgeInsets space between icon and title](https://cdn.ivanvorobei.by/websites/sparrowcode.io/edge-insets-uibutton/image-edge-insets-space-icon-title.mov)
31
+
[imageEdgeInsets space between icon and title](https://cdn.ivanvorobei.io/websites/sparrowcode.io/edge-insets-uibutton/image-edge-insets-space-icon-title.mov)
32
32
33
33
The behavior is more complicated. The indentation is added, but it doesn't affect the size of the button. If it did, the problem would be solved.
34
34
@@ -78,13 +78,13 @@ button.titleImageInset = 8
78
78
79
79
Works for RTL localization. If there is no picture, no indentation is added. The developer only needs to set the indent value.
80
80
81
-

81
+

82
82
83
83
## Deprecated
84
84
85
85
I should point out, with iOS 15 our friends are labeled `derritated`.
86
86
87
87
A few years of property will work. Apple recommends using the configuration. Let's see what survives - the configuration, or good old `padding`.
88
88
89
-
That's all for now. For a visual dabble, download [example project](https://cdn.ivanvorobei.by/websites/sparrowcode.io/edge-insets-uibutton/example-project.zip).
89
+
That's all for now. For a visual dabble, download [example project](https://cdn.ivanvorobei.io/websites/sparrowcode.io/edge-insets-uibutton/example-project.zip).
Copy file name to clipboardExpand all lines: en/tutorials/how-add-view-to-swiftui-library.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ SwiftUI is designed to make its view easy to be reuse.
5
5
Library provides access to available SwiftUI View, modifiers, images, etc. You can DnD or double-click the selected item to add the View into your code.
Pressing the `Load more` button starts the download. The text shows the current progress and the `Reset` button will become available to tap and reset. When the download is finished, the text on the screen will let you know. The `Load more` button will become inactive.
The event is called several times by a timer. Timer source code:
113
113
@@ -125,7 +125,7 @@ This is how we show the user that the loading progress depends on the size of th
125
125
126
126
A description of the `publish` method is available in [Apple documentation](https://developer.apple.com/documentation/foundation/timer/3329589-publish). More initializers can be found in the Xcode documentation or on the [website](https://developer.apple.com/documentation/swiftui/progressview).
The models representing purchases and operations on them have been replaced. The names now have no SK prefixes and it is generally intuitive to see which data represent the models. We will not dwell on each one the list is below:
@@ -55,7 +55,7 @@ Added auto-renewal subscription state, which was previously only available in th
55
55
-<b>inGracePeriod</b>- deferred payment by subscription. If your subscription has a grace period enabled and a payment error has occurred, the user will have some more time while the subscription is alive, although the payment has not yet been made. The number of days of the grace period can be from 6 to 16, depending on the length of the subscription itself.<br>
56
56
-<b>revoked</b>- access to all subscriptions of this group is denied by the AppStore.
Copy file name to clipboardExpand all lines: en/tutorials/product-page-optimization-alternative-icons.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ The documentation says "put the icons in Asset Catalog, send the binary to App S
6
6
7
7
The alternative icon is done in multiple resolutions, just like the main icon. I use [AppIconBuilder](https://apps.apple.com/app/id1294179975). Naming should be whatever you want, but it will show up on App Store Connect.
8
8
9
-

9
+

10
10
11
11
## Settings in Target.
12
12
13
13
You need Xcode 13 or higher. Select the app targeted and go to the `Build Settings` tab. In the search, type `App Icon` and you will see the `Asset Catalog Compiler` section.
14
14
15
-

15
+

Apply a modifier to `SecondaryView()` and change the location to `.navigationBarDrawer`. The `SearchFieldPlacement()` structure is responsible for the position of the search field. By default `placement` is `.automatic`.
Renders are available for each symbol, but there may be situations when the result for different renders will be the same and the icon will not change appearance. It is better to choose [in application](https://developer.apple.com/sf-symbols/), having previously set the desired renderer.
If a symbol has 1 segment for a color, it will use the first color specified. If the symbol has 2 segments, but 1 color is specified, it will be used for both segments. If you specify 2 colors, they will be applied accordingly. If you specify 3 colors, the third is ignored.
0 commit comments