{"id":12881,"date":"2020-06-01T05:20:42","date_gmt":"2020-06-01T05:20:42","guid":{"rendered":"https:\/\/bestkora.com\/IosDeveloper\/?p=12881"},"modified":"2020-06-21T13:00:10","modified_gmt":"2020-06-21T13:00:10","slug":"lektsiya-2-cs193p-spring-2020-mvvm-i-sistema-tipov-v-swift-chast-1","status":"publish","type":"post","link":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-2-cs193p-spring-2020-mvvm-i-sistema-tipov-v-swift-chast-1\/","title":{"rendered":"\u041b\u0435\u043a\u0446\u0438\u044f 2 CS193P Spring 2020 \u2014 MVVM \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0422\u0418\u041f\u043e\u0432 \u0432 Swift. \u0427\u0430\u0441\u0442\u044c 1."},"content":{"rendered":"<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12903 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53.png\" alt=\"\" width=\"2526\" height=\"1420\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53.png 2526w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53-300x169.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53-768x432.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53-1024x576.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53-500x281.png 500w\" sizes=\"auto, (max-width: 2526px) 100vw, 2526px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043f\u043e\u043b\u043d\u044b\u0439 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0445\u0440\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u041b\u0435\u043a\u0446\u0438\u0438 2 \u0421\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 CS193P Spring 2020 \u201c<a href=\"https:\/\/cs193p.sites.stanford.edu\"><strong>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u00a0<\/strong><strong>iOS\u00a0\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SwiftUI<\/strong><\/a><\/span><strong>\u00a0<\/strong>\u201d.<\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c &#8212; 0 &#8212; 38 \u043c\u0438\u043d\u0443\u0442\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435,<br \/>\n\u0412\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c &#8212; 38 &#8212; 104 \u043c\u0438\u043d\u0443\u0442\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f <strong><a title=\"\u041b\u0435\u043a\u0446\u0438\u044f 2 CS193P Spring 2020 \u2014 MVVM \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0422\u0418\u041f\u043e\u0432 \u0432 Swift. \u0427\u0430\u0441\u0442\u044c 2.\" href=\"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-2-cs193p-spring-2020-mvvm-i-sistema-tipov-v-swift-chast-2\/\">\u0437\u0434\u0435\u0441\u044c<\/a><\/strong> .<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041a\u043e\u0434 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 <strong><a href=\"https:\/\/github.com\/BestKora\/CS193P-Spring-2020-DEMO\">GitHub<\/a><\/strong>.<\/span><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; \u00a0 \u00a0 <strong>\u00a0\u041d\u0410\u0427\u0410\u041b\u041e \u041a\u041e\u041d\u0421\u041f\u0415\u041a\u0422\u0410<\/strong> \u00a0 \u00a0 \u00a0&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0432\u0442\u043e\u0440\u0443\u044e \u041b\u0435\u043a\u0446\u0438\u044e \u043a\u0443\u0440\u0441\u0430 \u0421\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0430<\/span> <span style=\"font-weight: 400;\">CS193P<\/span><span style=\"font-weight: 400;\">. \u042d\u0442\u043e \u0441\u0435\u043c\u0435\u0441\u0442\u0440\u00a0 \u0412\u0435\u0441\u043d\u0430 2020 (<\/span><span style=\"font-weight: 400;\">Spring\u00a0 2020<\/span><span style=\"font-weight: 400;\">). \u042d\u0442\u043e \u043a\u0443\u0440\u0441 <\/span><a href=\"https:\/\/www.youtube.com\/playlist?list=PLpGHT1n4-mAtTj9oywMWoBx0dCGd51_yG\"><span style=\"font-weight: 400;\">\u201c<\/span><\/a><strong><a href=\"https:\/\/cs193p.sites.stanford.edu\">\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SwiftUI.<\/a><a href=\"https:\/\/www.youtube.com\/playlist?list=PLpGHT1n4-mAtTj9oywMWoBx0dCGd51_yG\">\u201d<\/a>\u00a0<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">\u042f \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u043d\u0430 <strong><a title=\"\u041b\u0435\u043a\u0446\u0438\u044f 1 CS193P Spring 2020 \u2014 \u041b\u043e\u0433\u0438\u0441\u0442\u0438\u043a\u0430 \u043a\u0443\u0440\u0441\u0430 \u0438 \u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 SwiftUI. \u0427\u0430\u0441\u0442\u044c 1.\" href=\"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-1-cs193p-spring-2020-logistika-kursa-i-vvedenie-v-swiftui-chast-1\/\">\u043f\u0435\u0440\u0432\u043e\u0439 \u041b\u0435\u043a\u0446\u0438\u0438<\/a><\/strong>, \u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0434\u0432\u0443\u0445 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u0445 \u043a\u043e\u043d\u0446\u0435\u043f\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u0434\u0435\u044f\u0445.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u0435\u0440\u0432\u0430\u044f \u0438\u0437 \u044d\u0442\u0438\u0445 \u0438\u0434\u0435\u0439 &#8212; <strong>MVVM<\/strong>. \u042d\u0442\u043e \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430.<br \/>\n\u0418 \u0432\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0449\u044c, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c, &#8212; \u044d\u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0422\u0418\u041f\u043e\u0432 \u0432 <strong>Swift<\/strong>.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12885 size-large\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05-1024x447.png\" alt=\"\" width=\"584\" height=\"255\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05-1024x447.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05-300x131.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05-768x335.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05-500x218.png 500w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/b><\/h2>\n<ul>\n<li><strong><span style=\"color: #0000ff;\">MVVM<\/span><\/strong>\n<ul>\n<li><span style=\"font-weight: 400;\">\u041f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/span><\/li>\n<\/ul>\n<\/li>\n<li><strong><span style=\"color: #0000ff;\"><b>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0422\u0418\u041f\u043e\u0432<\/b><\/span><\/strong>\n<ul>\n<li><span style=\"font-weight: 400;\"><code><strong>struct<\/strong><\/code> &#8212; \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><code><strong>class<\/strong><\/code> &#8212; \u043a\u043b\u0430\u0441\u0441<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><strong>protocol<\/strong> &#8212; \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><code><strong>\u201cDon\u2019t Care\u201d<\/strong><\/code> \u0422\u0418\u041f (generic) &#8212; \u201c\u041d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d \u0422\u0418\u041f<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><strong>enum<\/strong> &#8212; \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><code><strong>functions<\/strong><\/code> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0435\u043c \u0441 <strong>MVVM<\/strong>.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.48.44.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12886 size-large\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.48.44-1024x275.png\" alt=\"\" width=\"584\" height=\"157\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.48.44-1024x275.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.48.44-300x81.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.48.44-768x207.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.48.44-500x135.png 500w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/b><\/h2>\n<ul>\n<li><strong><span style=\"color: #0000ff;\">Model-View-ViewModel<\/span><\/strong>\n<ul>\n<li><span style=\"font-weight: 400;\">\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u0430\u044f \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u201c\u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430\u201d.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0435\u0439 \u201c\u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e\u201d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 SwiftUI.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u042d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 MVC (Model View Controller), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 UIKit (\u0441\u0442\u0430\u0440\u044b\u0439 \u0441\u0442\u0438\u043b\u044c iOS).<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>MVVM <\/strong><span style=\"font-weight: 400;\">&#8212; \u044d\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430. \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u043e \u0441\u0443\u0442\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0441\u0442, \u0433\u0434\u0435 \u201c\u0436\u0438\u0432\u0435\u0442\u201d \u043a\u043e\u0434 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. <\/span><strong>MVVM <\/strong><span style=\"font-weight: 400;\">\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0435\u0439 \u201cP\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e\u201d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043b \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f <\/span><strong>MVVM<\/strong><span style=\"font-weight: 400;\"> \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0432<\/span><span style=\"color: #0000ff;\"><strong> SwiftUI<\/strong><\/span><span style=\"font-weight: 400;\">. \u0412\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 <\/span><strong>SwiftUI<\/strong><span style=\"font-weight: 400;\"> \u0431\u0435\u0437 <\/span><strong>MVVM<\/strong><span style=\"font-weight: 400;\">. \u0422\u0435 \u0438\u0437 \u0432\u0430\u0441, \u043a\u0442\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u043b <strong><a title=\"iOS 12, iOS 11 + Swift 4\" href=\"https:\/\/bestkora.com\/IosDeveloper\/ios-11-swift-4\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u044d\u0442\u043e\u0433\u043e<\/a><\/strong><\/span><strong><a title=\"iOS 12, iOS 11 + Swift 4\" href=\"https:\/\/bestkora.com\/IosDeveloper\/ios-11-swift-4\/\"> CS193P \u043a\u0443\u0440\u0441\u0430 \u0434\u043b\u044f <\/a><\/strong><span style=\"font-weight: 400;\"><strong><a title=\"iOS 12, iOS 11 + Swift 4\" href=\"https:\/\/bestkora.com\/IosDeveloper\/ios-11-swift-4\/\">iOS 11<\/a><\/strong>,\u00a0<\/span><span style=\"font-weight: 400;\">\u0434\u043e\u043b\u0436\u043d\u044b \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e<strong>\u00a0<\/strong><\/span><strong>MVVM<\/strong><span style=\"font-weight: 400;\"> \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f <\/span><strong>MVC<\/strong><span style=\"font-weight: 400;\">, \u0447\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f <\/span><span style=\"font-weight: 400;\">Model-View-Controller<\/span><span style=\"font-weight: 400;\"> \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <\/span><span style=\"color: #0000ff;\"><strong>UIKit<\/strong><\/span><span style=\"font-weight: 400;\">, \u0441\u0442\u0430\u0440\u044b\u043c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432 <\/span><strong>iOS<\/strong><span style=\"font-weight: 400;\"> \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445.<\/span><\/p>\n<p><!--more--><\/p>\n<p><span style=\"font-weight: 400;\">\u0423 <\/span><strong>MVVM<\/strong><span style=\"font-weight: 400;\"> \u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0449\u0435\u0433\u043e \u0441 <\/span><strong>MVC<\/strong><span style=\"font-weight: 400;\">, \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0438 \u0432 \u0442\u043e\u043c, \u0438 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u0438\u0442\u044c<strong> M<\/strong>odel, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u044d\u043a\u0435\u043d\u0434\u043e\u043c \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043e\u0442 <\/span><b>V<\/b><span style=\"font-weight: 400;\">iew, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0451\u0442 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c. \u041e\u0431\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c <\/span><span style=\"font-weight: 400;\"><strong>M<\/strong>odel<\/span> <strong>UI<\/strong><span style=\"font-weight: 400;\"> \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e <\/span><span style=\"font-weight: 400;\"><strong>M<\/strong>odel<\/span><span style=\"font-weight: 400;\">\u00a0\u0438 <strong>V<\/strong>iew, \u0430 \u0437\u0430\u0442\u0435\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a <strong>MVVM<\/strong> \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0438\u0445 \u0432\u043c\u0435\u0441\u0442\u0435.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-09.05.47.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12887 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-09.05.47.png\" alt=\"\" width=\"2396\" height=\"1376\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-09.05.47.png 2396w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-09.05.47-300x172.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-09.05.47-768x441.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-09.05.47-1024x588.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-09.05.47-500x287.png 500w\" sizes=\"auto, (max-width: 2396px) 100vw, 2396px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0418\u0442\u0430\u043a <\/span><span style=\"font-weight: 400;\"><strong>M<\/strong>ode<\/span><span style=\"font-weight: 400;\">l &#8212; <\/span><span style=\"font-weight: 400;\">UI <\/span><span style=\"font-weight: 400;\">\u041d\u0415\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430. <\/span><span style=\"font-weight: 400;\"><strong>M<\/strong>odel <\/span><span style=\"font-weight: 400;\">\u041d\u0415 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442<\/span><strong><span style=\"color: #0000ff;\"> SwiftUI<\/span><\/strong><span style=\"font-weight: 400;\">, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440. \u041e\u043d\u0430 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c (\u0432\u043e\u0431\u0440\u0430\u0442\u044c \u0432 \u0441\u0435\u0431\u044f) \u0434\u0430\u043d\u043d\u044b\u0435<\/span><strong> Data <\/strong><span style=\"font-weight: 400;\">\u0438 \u043b\u043e\u0433\u0438\u043a\u0443 <\/span><strong>Logic<\/strong><span style=\"font-weight: 400;\"> \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>\n\u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u044b \u201c\u043d\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u201d \u043a\u0430\u0440\u0442\u044b &#8212; \u044d\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 <\/span><strong>Data<\/strong><span style=\"font-weight: 400;\">, \u0430 \u043b\u043e\u0433\u0438\u043a\u0430 <\/span><strong>Logic<\/strong><span style=\"font-weight: 400;\"> \u0438\u0433\u0440\u044b \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u0435\u0441\u043b\u0438 \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u043a\u0430\u0440\u0442\u0443? \u0427\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u201c\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u201d? \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0447\u043a\u043e\u0432 \u044f \u043f\u043e\u043b\u0443\u0447\u0443, \u0435\u0441\u043b\u0438 \u043a\u0430\u0440\u0442\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0443\u0442? \u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u043a\u0430\u0440\u0442\u044b \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0443\u0442?<br \/>\n\u0412\u0441\u044f \u044d\u0442\u0430 \u043b\u043e\u0433\u0438\u043a\u0430 <strong>Logic<\/strong> \u0438\u0433\u0440\u044b \u0438 \u0441\u0430\u043c\u0438 \u043a\u0430\u0440\u0442\u044b \u043a\u0430\u043a \u0434\u0430\u043d\u043d\u044b\u0435 <strong>Data<\/strong>, \u201c\u0436\u0438\u0432\u0443\u0442\u201d \u0432 <strong>M<\/strong>odel.<br \/>\n<strong>M<\/strong>odel &#8212; \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0418\u0421\u0422\u0418\u041d\u042b \u201c<strong>Truth<\/strong>\u201d. \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445<strong> Data<\/strong> \u0438 \u043b\u043e\u0433\u0438\u043a\u0438 <strong>Logic<\/strong> \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u0418\u0421\u0422\u0418\u041d\u042b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong>M<\/strong>odel.<br \/>\n\u041c\u044b \u041d\u0418\u041a\u041e\u0413\u0414\u0410 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 <strong>Data\u00a0<\/strong>\u0433\u0434\u0435-\u0442\u043e \u0435\u0449\u0451, \u0438 \u0443 \u043d\u0430\u0441 \u041d\u0418\u041a\u041e\u0413\u0414\u0410 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0432\u0443\u0445 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 <strong>Data<\/strong>. \u041c\u044b \u0412\u0421\u0415\u0413\u0414\u0410 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a <strong>M<\/strong>odel \u0437\u0430 \u0418\u0421\u0422\u0418\u041d\u041e\u0419 ( \u0434\u0430\u043d\u043d\u044b\u043c\u0438 <strong>Data<\/strong> \u0438 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 <strong>Logic<\/strong>).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 <strong>V<\/strong>iew, <strong>V<\/strong>iew \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 <strong>M<\/strong>odel. \u0414\u0430\u043d\u043d\u044b\u0435 <strong>Data<\/strong> \u0432\u0441\u0435\u0433\u0434\u0430 \u201c\u0442\u0435\u043a\u0443\u0442\u201d \u041e\u0422 <strong>M<\/strong>odel \u043a <strong>V<\/strong>iew. \u041c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430\u0448\u0435 <strong>V<\/strong>iew \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u0430\u043a \u043d\u0430\u0448\u0430 <strong>M<\/strong>odel.<br \/>\n\u041a\u0430\u043a \u0431\u044b \u043d\u0430\u0448 <strong>V<\/strong>iew \u043d\u0438 \u201c\u0440\u0438\u0441\u043e\u0432\u0430\u043b\u201d \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 <strong>M<\/strong>odel, \u043a\u0430\u043a \u0431\u044b \u043d\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0430 \u043d\u0430\u0448\u0430 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u0430\u044f \u0438\u0433\u0440\u0430 \u043d\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435,\u00a0<strong>V<\/strong>iew \u0412\u0421\u0415\u0413\u0414\u0410 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0440\u0430\u0436\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438\u0433\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0432 <strong>M<\/strong>odel. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u0430\u044f \u0432\u0435\u0449\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <strong>V<\/strong>iew.<br \/>\n\u0412\u0421\u0415\u0413\u0414\u0410 <strong>V<\/strong>iew \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 <strong>M<\/strong>odel.<br \/>\n<strong>V<\/strong>iew \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f State (<i>stateless<\/i>), \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 State \u0438\u0433\u0440\u044b \u043d\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 <strong>M<\/strong>odel.<br \/>\n\u0422\u0430\u043a \u0447\u0442\u043e \u0441\u0430\u043c\u043e \u043f\u043e \u0441\u0435\u0431\u0435 <strong>V<\/strong>iew \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439 State.<br \/>\n<strong>V<\/strong>iew \u043f\u043e \u0441\u0443\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <strong>M<\/strong>odel \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0435\u0433\u043e \u0438 \u043e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0443\u043c\u0435\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u041f\u0440\u043e\u0441\u0442\u043e \u0432 \u043b\u044e\u0431\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043a\u0430\u0437\u0430\u0442\u044c <strong>V<\/strong>iew:<\/span><\/p>\n<p><b>\u201c\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438 \u043d\u0430 Model \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438 \u0435\u0451 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441.\u201d<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u0418\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448 <b>V<\/b>iew. \u0418 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0430\u0448 <b>V<\/b>iew \u0442\u0435\u043c, \u0447\u0442\u043e \u043c\u044b \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0414\u0415\u041a\u041b\u0410\u0420\u0410\u0422\u0418\u0412\u041d\u042b\u041c (<i>declarative<\/i>).<br \/>\n\u0414\u0415\u041a\u041b\u0410\u0420\u0410\u0422\u0418\u0412\u041d\u042b\u0419 (<i>declarative<\/i>) <b>V<\/b>iew \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0430\u0448 <b>V<\/b>iew, \u0438 \u0447\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435, \u0435\u0441\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f <b>M<\/b>odel.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u041b\u0435\u043a\u0446\u0438\u0438:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.54.44.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-13211 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.54.44.png\" alt=\"\" width=\"1520\" height=\"1192\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.54.44.png 1520w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.54.44-300x235.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.54.44-768x602.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.54.44-1024x803.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.54.44-383x300.png 383w\" sizes=\"auto, (max-width: 1520px) 100vw, 1520px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0417\u0430\u043c\u0435\u0442\u044c\u0442\u0435, \u0447\u0442\u043e \u043c\u044b \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u0448\u0435\u0433\u043e <\/span><span style=\"font-weight: 400;\">UI <\/span><span style=\"font-weight: 400;\">\u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435, \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u044d\u0442\u0438 <\/span><span style=\"font-weight: 400;\">UI<\/span><span style=\"font-weight: 400;\"> \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b. \u041c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0441 \u0437\u0430\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0443\u0433\u043b\u0430\u043c\u0438\u00a0<\/span><\/p>\n<p><strong><span style=\"color: #680da1;\">RoundedRectangle<\/span><\/strong><span style=\"font-weight: 400;\">, \u0438\u043b\u0438 \u043c\u0435\u0442\u043a\u0443 <\/span><span style=\"font-weight: 400;\"><strong><span style=\"color: #680da1;\">Text<\/span><\/strong>,<\/span><span style=\"font-weight: 400;\"> \u0438\u043b\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0435\u043a <\/span><strong><span style=\"color: #680da1;\">HStack<\/span><\/strong><span style=\"font-weight: 400;\">, \u0438\u043b\u0438<\/span><strong><span style=\"color: #680da1;\"> ZStack<\/span><\/strong><span style=\"font-weight: 400;\">, \u0432\u0441\u0435 \u044d\u0442\u0438 <\/span><span style=\"font-weight: 400;\">UI<\/span><span style=\"font-weight: 400;\"> \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0438\u0445 \u0442\u0430\u043c, \u0433\u0434\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430 UI.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u0434\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430\u043c\u0438 (<\/span><i><span style=\"font-weight: 400;\">modifiers<\/span><\/i><span style=\"font-weight: 400;\">), \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0435\u043c, \u0447\u0442\u043e \u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u043e, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442\u00a0 <\/span><span style=\"font-weight: 400;\">UI<\/span><span style=\"font-weight: 400;\"> \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0438 \u043e\u043d\u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0440\u044f\u0434\u043e\u043c \u0441 \u0442\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c UI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d\u0438 \u043c\u0435\u043d\u044f\u044e\u0442 :<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.56.25.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-13212 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.56.25.png\" alt=\"\" width=\"1522\" height=\"1194\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.56.25.png 1522w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.56.25-300x235.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.56.25-768x602.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.56.25-1024x803.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-21-at-15.56.25-382x300.png 382w\" sizes=\"auto, (max-width: 1522px) 100vw, 1522px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0418\u0442\u0430\u043a, \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u041b\u0435\u043a\u0446\u0438\u0438, \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u0442, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0430\u0448 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<br \/>\n\u042d\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438<strong> iOS<\/strong> \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u043d\u0430 \u043d\u0430\u0441 \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u0438\u0439 \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0418\u041c\u041f\u0415\u0420\u0410\u0422\u0418\u0412\u041d\u042b\u041c\u0418.<br \/>\n\u0415\u0441\u043b\u0438 \u0441\u043b\u044b\u0448\u0438\u0442\u0435, \u0447\u0442\u043e \u0438\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u043e\u0431 \u0418\u041c\u041f\u0415\u0420\u0410\u0422\u0418\u0412\u041d\u041e\u0419 \u043c\u043e\u0434\u0435\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0438\u043b\u0438 \u043e\u0431 \u0418\u041c\u041f\u0415\u0420\u0410\u0422\u0418\u0412\u041d\u041e\u0419 \u043c\u043e\u0434\u0435\u043b\u0438 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0446\u0435\u043b\u043e\u043c, \u0442\u043e \u0434\u0443\u043c\u0430\u0439\u0442\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043b\u043e\u0432\u043e \u201c\u0418\u041c\u041f\u0415\u0420\u0410\u0422\u0418\u0412\u041d\u042b\u0419\u201d (<i>imperative<\/i>) \u0438\u043c\u0435\u0435\u0442 \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u0440\u0435\u043d\u044c, \u0447\u0442\u043e \u0438 \u0441\u043b\u043e\u0432\u043e \u201c\u0418\u041c\u041f\u0415\u0420\u0421\u041a\u0418\u0419\u201d (<i>imperial<\/i>).<br \/>\n\u0418\u043c\u043f\u0435\u0440\u0441\u043a\u043e\u0435 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u043e &#8212; \u044d\u0442\u043e \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u043e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0430\u0432\u0438\u0442 \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0438 \u043e\u043d \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u0432\u043e\u0438\u043c \u043f\u043e\u0434\u0434\u0430\u043d\u043d\u044b\u043c: \u201c\u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u044d\u0442\u043e, \u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u044d\u0442\u043e, \u0441\u0430\u0436\u0430\u0439\u0442\u0435 \u044d\u0442\u0438 \u043f\u043e\u043b\u044f \u0438 \u0442.\u0434.\u201d \u0418\u043c\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043b\u044e\u0434\u044f\u043c, \u0438 \u0442\u0430\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u201c\u0436\u0438\u0432\u0435\u0442\u201d \u0438\u043c\u043f\u0435\u0440\u0441\u043a\u043e\u0435 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u043e.<br \/>\n\u0421\u043b\u0435\u0434\u0443\u044f \u044d\u0442\u043e\u0439 \u043c\u0435\u0442\u0430\u0444\u043e\u0440\u0435 \u0432 \u041c\u0438\u0440\u0435 UI, \u0412\u042b \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0435, \u0433\u0434\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0442\u0443 \u0438\u043b\u0438 \u0438\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443, \u043a\u0430\u043a \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c UI \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0438 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0432\u044b \u0432\u0441\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0427\u0435\u043c \u0436\u0435 \u043f\u043b\u043e\u0445\u0430 \u0418\u041c\u041f\u0415\u0420\u0410\u0422\u0418\u0412\u041d\u041e\u0419 \u043c\u043e\u0434\u0435\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 (UI)?<br \/>\n\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u043c\u0435\u0442\u044c \u0434\u0435\u043b\u043e \u0441\u043e \u0412\u0420\u0415\u041c\u0415\u041d\u0415\u041c.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #3366ff;\">&#8212;&#8212; 5 -\u0430\u044f \u043c\u0438\u043d\u0443\u0442\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 &#8212;&#8212;&#8212;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0412\u0441\u0435 \u044d\u0442\u0438 UI \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0432\u0441\u0435 \u044d\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f.<br \/>\n\u0420\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0437\u0436\u0435 \u043c\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0435\u0451 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0430 \u0437\u0430\u0442\u0435\u043c \u0435\u0449\u0451 \u043f\u043e\u0437\u0436\u0435 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0451 \u0432\u0438\u0434\u0438\u043c\u043e\u0439 \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0451.<br \/>\n\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0430\u0448 \u0418\u041c\u041f\u0415\u0420\u0410\u0422\u0418\u0412\u041d\u042b\u0419 UI, \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0438\u043c\u0435\u0442\u044c \u0434\u0435\u043b\u043e \u0441 \u0435\u0449\u0451 \u043e\u0434\u043d\u0438\u043c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435\u043c, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u043e \u0412\u0420\u0415\u041c\u0415\u041d\u0415\u041c, \u0442\u043e \u0435\u0441\u0442\u044c \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c, \u041a\u041e\u0413\u0414\u0410 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u0435 \u0438\u043b\u0438 \u0438\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043a\u0430\u043a \u0438\u0445 \u0432\u044b\u0437\u043e\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u0415\u0441\u043b\u0438 \u0432\u0430\u0448 UI \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u0442\u043e \u043a\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043c\u0435\u043d\u044f\u044e\u0449\u0443\u044e \u0432\u0430\u0448 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u0412\u0430\u043c \u0432\u0441\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0430 \u0441\u0442\u0440\u0430\u0436\u0435 \u0438 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u043a\u043e \u0432\u0441\u0435\u043c\u0443. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u0448\u043c\u0430\u0440 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0430\u043a\u0438\u043c UI \u0438 \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u0430\u0448 UI \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0432\u0435\u0434\u044c \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u043e \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u0445.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u043c\u0443, \u043f\u0440\u0438 \u0414\u0415\u041a\u041b\u0410\u0420\u0410\u0422\u0418\u0412\u041d\u041e\u041c \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f UI \u0432\u044b \u0412\u0421\u0415\u0413\u0414\u0410 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 UI \u0438 \u0447\u0435\u0442\u043a\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u043e\u043d \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u043b\u044e\u0431\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 UI \u041d\u0415 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0412\u0420\u0415\u041c\u0415\u041d\u0418.<br \/>\n\u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0442\u043e \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u043d \u0440\u0438\u0441\u0443\u0435\u0442, \u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438.<br \/>\n\u0412\u0441\u0435, \u0447\u0442\u043e \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u0430\u0448\u0435\u043c UI \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438.<br \/>\n\u0422\u043e\u0442 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u041b\u0435\u043a\u0446\u0438\u0438, \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043f\u043e\u043b\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u0432\u0430\u0448\u0438\u0445 \u043a\u0430\u0440\u0442, \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u044d\u0442\u0438\u043c \u043a\u043e\u0434\u043e\u043c, \u0438 \u0432\u0441\u0435 \u043f\u043e\u0440\u0442\u0438\u0442\u044c.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u043e\u0437\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u044b \u0443\u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0430 \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 <strong><span style=\"color: #680da1;\">Views<\/span><\/strong> \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438 <strong><span style=\"color: #c3178b;\">structs<\/span><\/strong>, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f <strong>read-only<\/strong> (\u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0438\u043a\u043e\u043c\u0443 \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0445 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442, \u044d\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<br \/>\n\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u044b\u0442\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 <strong><span style=\"color: #680da1;\">View<\/span><\/strong> \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0442\u0430\u043a, \u043a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435 \u044d\u0442\u043e \u0432 \u043a\u043e\u0434\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442.<br \/>\n\u042d\u0442\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u0432 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0443\u0432\u0435\u0440\u0435\u043d\u044b \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0443\u0442 \u0441 \u0432\u0430\u0448\u0438\u043c\u0438 <strong><span style=\"color: #680da1;\">Views<\/span><\/strong> \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u042d\u0442\u043e \u0444\u0430\u043d\u0442\u0430\u0441\u0442\u0438\u043a\u0430.<br \/>\n\u041e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f UI.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0447\u0430\u0441\u0442\u044c, \u043a\u0430\u0441\u0430\u044e\u0449\u0430\u044f\u0441\u044f <\/span><strong>View<\/strong><span style=\"font-weight: 400;\">, \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0420\u0415\u0410\u041a\u0422\u0418\u0412\u041d\u042b\u041c (<\/span><i><span style=\"font-weight: 400;\">reactive<\/span><\/i><span style=\"font-weight: 400;\">):<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.02.13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12890 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.02.13.png\" alt=\"\" width=\"2412\" height=\"1030\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.02.13.png 2412w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.02.13-300x128.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.02.13-768x328.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.02.13-1024x437.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.02.13-500x214.png 500w\" sizes=\"auto, (max-width: 2412px) 100vw, 2412px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e <strong>Model<\/strong> \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f, <strong>View<\/strong> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0410\u0412\u0422\u041e\u041c\u0410\u0422\u0418\u0427\u0415\u0421\u041a\u0418 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u0435? \u042f \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0432\u0430\u043c, \u0447\u0442\u043e <strong>View<\/strong> \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0421\u041e\u0421\u0422\u041e\u042f\u041d\u0418\u042f (<i>stateless<\/i>). \u0412 \u043b\u044e\u0431\u043e\u0435 \u0432\u0440\u0435\u043c\u044f <strong>View<\/strong> \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0442\u0430\u043a, \u043a\u0430\u043a \u0442\u0440\u0435\u0431\u0443\u0435\u0442 <strong>Model<\/strong>, \u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u043d\u0435\u043a\u0438\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u0432\u0441\u044f\u043a\u0438\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f <strong>Model<\/strong>, \u0410\u0412\u0422\u041e\u041c\u0410\u0422\u0418\u0427\u0415\u0421\u041a\u0418 \u043f\u0440\u043e\u0441\u0438\u043b\u0430 \u0431\u044b View \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a, \u043a\u0430\u043a \u044d\u0442\u043e\u0433\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0432\u0448\u0430\u044f\u0441\u044f <strong>Model<\/strong>.<br \/>\n\u042d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0420\u0415\u0410\u041a\u0422\u0418\u0412\u041d\u042b\u041c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u00a0 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 (<em>react<\/em>) \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 <strong>Model<\/strong>. \u0412\u043e\u0442 \u0438 \u0432\u0441\u0451.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e, \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 <strong>MVVM<\/strong> \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <strong>ViewModel<\/strong>.<br \/>\n\u0420\u0430\u0431\u043e\u0442\u0430 <strong>ViewModel<\/strong> \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u201c\u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c\u201d (<i>bind<\/i>) <strong>View<\/strong> \u043a <strong>Model<\/strong>. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 <strong>Model<\/strong>, <strong>View<\/strong> \u0442\u0443\u0442 \u0436\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u044d\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.19.15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12891 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.19.15.png\" alt=\"\" width=\"2460\" height=\"1362\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.19.15.png 2460w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.19.15-300x166.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.19.15-768x425.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.19.15-1024x567.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-10.19.15-500x277.png 500w\" sizes=\"auto, (max-width: 2460px) 100vw, 2460px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u201c\u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438\u201d <strong>View<\/strong> \u043a <strong>Model<\/strong>. \u0427\u0442\u043e \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0443?<br \/>\n<strong>ViewModel<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c <strong>Model<\/strong> (\u0442\u043e \u0435\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 <strong>Data<\/strong> \u0438 \u043b\u043e\u0433\u0438\u043a\u0443 <strong>Logic<\/strong>) \u0434\u043b\u044f <strong>View<\/strong>.<br \/>\n\u0417\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e?<br \/>\n\u041c\u044b \u0445\u043e\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b <strong>View<\/strong> \u0431\u044b\u043b \u043a\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0449\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u043a\u043e\u0434 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u0414\u0415\u041a\u041b\u0410\u0420\u0410\u0422\u0418\u0412\u041d\u042b\u041c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c. \u041c\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0422\u0418\u041f\u0410 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439. \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0441\u0438\u0442\u044c <strong>ViewModel<\/strong> \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Model<\/strong> \u0432 \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u0435, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u041b\u0435\u043a\u0446\u0438\u0438, \u044d\u0442\u043e \u0438\u0433\u0440\u0430 \u043d\u0430 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u0448\u0430 <strong>Model<\/strong> &#8212; \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438 \u0443 \u043d\u0435\u0433\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f\u00a0<strong>Model<\/strong>, \u043d\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0430\u0448\u0430 <strong>Model<\/strong> &#8212; \u044d\u0442\u043e <strong>SQL<\/strong> \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0 <strong>HTTP<\/strong> \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432. <strong>Model<\/strong> &#8212; \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u0438 \u0432\u0430\u0448 <strong>ViewModel<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0435\u0451, \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0432 \u0432 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 <strong>View<\/strong> \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0432 <strong>View<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0438\u0445 \u201c\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f\u201d.<br \/>\n\u0422\u0430\u043a \u0447\u0442\u043e\u00a0<strong>ViewModel<\/strong> \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0440\u043e\u043b\u044c \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 <strong>Data<\/strong> \u043c\u043e\u0434\u0435\u043b\u0438 <strong>Model<\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u043e \u043c\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c <strong>ViewModel<\/strong> \u043c\u0435\u0436\u0434\u0443 <strong>Model<\/strong> \u0438 <strong>View<\/strong>. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0410\u0412\u0422\u041e\u041c\u0410\u0422\u0418\u0427\u0415\u0421\u041a\u041e\u041c\u0423 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044e <strong>View<\/strong> \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 <strong>Model<\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0430\u043a \u043a\u0430\u043a \u0436\u0435 <strong>ViewModel<\/strong> \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e?<br \/>\n\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e\u00a0<strong>ViewModel<\/strong> \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0438 \u0432 <strong>Model<\/strong>, \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u043d \u044d\u0442\u043e \u043b\u044e\u0431\u044b\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438. \u0415\u0441\u043b\u0438 \u0432\u0430\u0448\u0430 <strong>Model<\/strong> &#8212; \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-11.33.04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12892 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-11.33.04.png\" alt=\"\" width=\"2506\" height=\"1406\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-11.33.04.png 2506w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-11.33.04-300x168.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-11.33.04-768x431.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-11.33.04-1024x575.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-11.33.04-500x281.png 500w\" sizes=\"auto, (max-width: 2506px) 100vw, 2506px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u041c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u043a\u0430\u043a \u043e \u0422\u0418\u041f\u0415 \u0432 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <strong>Swift <\/strong> \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u0438\u0439, \u043d\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<strong><span style=\"color: #c3178b;\"> struct<\/span><\/strong> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span> <\/strong>\u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u043b\u0438 \u0435\u0449\u0451 \u043a\u0443\u0434\u0430-\u0442\u043e \u043e\u043d\u0430 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0438 <strong>Swift<\/strong> \u0442\u043e\u0447\u043d\u043e \u0437\u043d\u0430\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u00a0<strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c. \u041e\u043d \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span> <\/strong>\u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u0438 \u0434\u043b\u044f <strong>ViewModel<\/strong>, \u0447\u044c\u044f <strong>Model<\/strong> &#8212; \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0435\u0451 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e.<br \/>\n\u041d\u043e \u0435\u0441\u043b\u0438 <strong>Model<\/strong> &#8212; \u044d\u0442\u043e <strong>SQL<\/strong> \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u044f \u043d\u0435 \u0437\u043d\u0430\u044e, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044b \u0432\u0441\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 <strong>SQL<\/strong> \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0442\u043e \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435. \u041d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u043e\u0431 \u044d\u0442\u0438\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445 \u0432 <strong>Model<\/strong>, \u044d\u0442\u043e \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c <strong>ViewModel<\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u042d\u0442\u043e \u043f\u0435\u0440\u0432\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0449\u044c, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c <strong>ViewModel<\/strong>.<br \/>\n\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 <strong>Data<\/strong> \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c, \u0442\u043e <strong>ViewModel<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 <strong>Data<\/strong>, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435, \u0430 \u0437\u0430\u0442\u0435\u043c <strong>ViewModel<\/strong> \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 : \u201c<b>\u0427\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u0432 \u044d\u0442\u043e\u043c \u041c\u0438\u0440\u0435&#8230;<\/b>\u201d \u0432\u0441\u0435\u043c, \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e.<br \/>\n\u0418 \u044d\u0442\u043e \u0432\u0441\u0451, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 <strong>ViewModel<\/strong> &#8212; \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 : \u201c<b>\u0427\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c&#8230;<\/b>\u201d<br \/>\n\u0420\u0435\u0430\u043b\u044c\u043d\u043e \u0443 <strong>ViewModel<\/strong> \u0434\u0430\u0436\u0435 \u043d\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 (<i>pointers<\/i>) \u043d\u0430 \u043a\u0430\u043a\u043e\u0435-\u043b\u0438\u0431\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 <strong><span style=\"color: #680da1;\">Views<\/span><\/strong>.<br \/>\n<strong>ViewModel<\/strong> \u041d\u0418\u041a\u041e\u0413\u0414\u0410 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (<em>pointer<\/em>) \u043d\u0430 \u0441\u0432\u043e\u0439 <strong>View<\/strong>.<br \/>\n\u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0412\u0410\u0416\u041d\u041e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c. <strong>ViewModel<\/strong> \u041d\u0418\u041a\u041e\u0413\u0414\u0410 \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441<strong> View<\/strong> \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e.<\/span><br \/>\n<span style=\"font-weight: 400; color: #3366ff;\">&#8212;&#8212; 10 -\u0430\u044f \u043c\u0438\u043d\u0443\u0442\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 &#8212;&#8212;&#8212;<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-14.33.47.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12894 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-14.33.47.png\" alt=\"\" width=\"2448\" height=\"1384\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-14.33.47.png 2448w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-14.33.47-300x170.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-14.33.47-768x434.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-14.33.47-1024x579.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-14.33.47-500x283.png 500w\" sizes=\"auto, (max-width: 2448px) 100vw, 2448px\" \/><\/a><span style=\"font-weight: 400;\">\u041a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u0432 <strong>Model<\/strong>, <strong>ViewModel<\/strong> \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 : \u201c<b>\u0427\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c&#8230;<\/b>\u201d<br \/>\n\u0410 <strong>View<\/strong> \u201c\u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f\u201d \u043d\u0430 \u044d\u0442\u0443 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044e, \u0438 \u0435\u0441\u043b\u0438 <strong>View<\/strong> \u0432\u0438\u0434\u0438\u0442, \u0447\u0442\u043e \u201c<b>\u0427\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c&#8230;<\/b>\u201d, \u0442\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a <strong>ViewModel<\/strong> \u0438 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 : \u201c\u041a\u0430\u043a\u043e\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0421\u041e\u0421\u0422\u041e\u042f\u041d\u0418\u0415 (<em>State<\/em>) \u0432 \u044d\u0442\u043e\u043c \u041c\u0438\u0440\u0435? \u042f \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u044d\u0442\u0438\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0421\u041e\u0421\u0422\u041e\u042f\u041d\u0418\u0415\u041c!\u201d<br \/>\n\u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a <strong>ViewModel<\/strong> \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e <strong>View<\/strong> \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a <strong>Model<\/strong>, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e <strong>ViewModel<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 <strong>Data<\/strong> \u043c\u043e\u0434\u0435\u043b\u0438 <strong>Model<\/strong>, \u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c <strong>Model<\/strong> \u043e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043e\u043f\u0430\u0441\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e View.<br \/>\n\u0412\u043e\u0442 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <strong>ViewModel<\/strong>, \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e.<br \/>\n<strong>ViewModel<\/strong> \u0437\u0430\u043c\u0435\u0447\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 <strong>Model,<\/strong> \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0442\u0438 \u0432 \u043b\u044e\u0431\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442: \u201c<b>\u0427\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c&#8230;<\/b>\u201d<br \/>\n\u0417\u0430\u0442\u0435\u043c <strong>View<\/strong> \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u044d\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u201c<b>\u0427\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c&#8230;<\/b>\u201d, \u201c\u0432\u044b\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u201d \u0434\u0430\u043d\u043d\u044b\u0435 <strong>Data<\/strong> \u0438\u0437 <strong>ViewModel<\/strong> \u0438 \u201c\u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u201d \u0441\u0435\u0431\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c <strong>View<\/strong>:\u00a0 \u0412\u0421\u0415\u0413\u0414\u0410 \u201c\u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u201d \u0441\u0435\u0431\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c <strong>Model<\/strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435<strong>\u00a0View<\/strong> \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 <strong>ViewModel<\/strong> \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430.<br \/>\n\u042d\u0442\u043e \u0432\u0441\u0451, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c. \u0412 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u043c\u0435\u0441\u0442\u0440\u0430 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 <strong>Swift<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u0443 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u042f \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043b \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<strong> Swift<\/strong> \u0442\u0438\u043f\u0430 <strong><span style=\"color: #680da1;\">ObservableObject<\/span><\/strong>,<strong><span style=\"color: #680da1;\">\u00a0onReceive<\/span><\/strong>, <strong><span style=\"color: #680da1;\">objectWillChange\u00a0<\/span><\/strong>\u0438 \u0442.\u0434. \u041e\u0431 \u044d\u0442\u043e\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435 \u043c\u044b \u043d\u0430\u0447\u043d\u0435\u043c \u0440\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043d\u0435\u0434\u0435\u043b\u0435.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-15.40.36.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12897 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-15.40.36.png\" alt=\"\" width=\"2542\" height=\"1440\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-15.40.36.png 2542w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-15.40.36-300x170.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-15.40.36-768x435.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-15.40.36-1024x580.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-15.40.36-500x283.png 500w\" sizes=\"auto, (max-width: 2542px) 100vw, 2542px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u044d\u0442\u043e\u0442 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432 \u043a\u043e\u043d\u0446\u0435 \u041b\u0435\u043a\u0446\u0438\u0438 2. \u041c\u044b \u0434\u0430\u0436\u0435 \u043d\u0430\u0447\u043d\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0434\u043b\u044f <strong>View<\/strong> \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u201c<b>\u0427\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c&#8230;<\/b>\u201d \u0438 \u201c\u0432\u044b\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c\u201d \u0434\u0430\u043d\u043d\u044b\u0435 <strong>Data<\/strong> \u0438\u0437 <strong>ViewModel<\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0410 \u043a\u0430\u043a \u043d\u0430\u0441\u0447\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f?<br \/>\n\u041c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0434\u0430\u043d\u043d\u044b\u0435 <strong>Data<\/strong> \u043c\u043e\u0434\u0435\u043b\u0438 <strong>Model<\/strong> \u201c\u043f\u0435\u0440\u0435\u0442\u0435\u043a\u0430\u044e\u0442\u201d \u0432\u043e <strong>View<\/strong>, \u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e <strong>View<\/strong> \u0412\u0421\u0415\u0413\u0414\u0410 \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 <strong>Model<\/strong>.<br \/>\n\u0410 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 <strong>View<\/strong>, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f <strong>Swipe<\/strong> \u0436\u0435\u0441\u0442\u044b, \u0445\u043e\u0447\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c <strong>Model<\/strong>?<br \/>\n\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442?<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-18.52.30.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12899 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-18.52.30.png\" alt=\"\" width=\"2506\" height=\"1410\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-18.52.30.png 2506w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-18.52.30-300x169.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-18.52.30-768x432.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-18.52.30-1024x576.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-18.52.30-500x281.png 500w\" sizes=\"auto, (max-width: 2506px) 100vw, 2506px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0432\u043e\u0437\u043b\u043e\u0436\u0438\u043c \u043d\u0430 <strong>ViewModel<\/strong> \u0435\u0449\u0451 \u043e\u0434\u043d\u0443 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u201d (<i>Intents<\/i>) \u0438 \u043f\u043e\u0434 \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435\u043c\u201d (<i>Intent<\/i>) \u044f \u043f\u043e\u043d\u0438\u043c\u0430\u044e \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435\u201d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<br \/>\n<strong>MVVM<\/strong> &#8212; \u044d\u0442\u043e \u0446\u0435\u043b\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430. \u041d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438 \u043d\u0435\u0447\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0435, \u0442\u0430\u043a\u0436\u0435 \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0435\u0435\u0441\u044f \u043a \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u043d\u0435\u0447\u0442\u043e <strong>Model<\/strong>&#8212;<strong>View<\/strong>&#8212;<strong>Intent<\/strong> (\u041c\u043e\u0434\u0435\u043b\u044c &#8212; \u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 &#8212; \u041d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435 &#8212; <strong>MVI<\/strong>). \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0447\u0442\u043e-\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435\u201d.<br \/>\n\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u0438\u0437\u0430\u0439\u043d \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <strong>UI<\/strong> \u0434\u043b\u044f <strong>iOS<\/strong> \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>Apple<\/strong> \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 <strong>SwiftUI<\/strong> \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 <strong>Intent<\/strong> \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0442\u0430\u043a \u0447\u0442\u043e \u044f \u0431\u0443\u0434\u0443 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e\u0431 <strong>Intent<\/strong> \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u043a\u0430\u043a \u043e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438.<br \/>\n<strong>Intent<\/strong> &#8212; \u044d\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435\u201d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<br \/>\n\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u201d <strong>Intent<\/strong> \u0432 \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u0435 \u043d\u0430 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435\u201d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0435\u201d <strong>Intent<\/strong>.<br \/>\n\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u044d\u0442\u0438\u0445 \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0439\u201d <strong>Intent<\/strong> \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435 <strong>ViewModel<\/strong> \u0438 <strong>ViewModel<\/strong> \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u044d\u0442\u043e, \u0434\u0435\u043b\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 <strong>View<\/strong> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u201d.<br \/>\n\u0422\u043e \u0435\u0441\u0442\u044c <strong>View<\/strong>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u201c\u0436\u0435\u0441\u0442\u044b\u201d-<strong>Tap<\/strong> \u201c\u0436\u0435\u0441\u0442\u201d, <strong>Swipe<\/strong> \u201c\u0436\u0435\u0441\u0442\u201d \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u201c\u0436\u0435\u0441\u0442\u044b\u201d &#8212; \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c <strong>Intent<\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 <strong>ViewModel<\/strong>.<br \/>\n\u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u0443 \u043d\u0430\u0441 \u0432 \u043a\u043e\u0434\u0435 <strong>ViewModel<\/strong> \u0431\u0443\u0434\u0435\u0442 \u0441\u0435\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0446\u0435\u043b\u0435\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0442\u0440\u0430\u0436\u0430\u044e\u0442 \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u201d Intents&gt; \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u044f\u0441\u043d\u044b\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0445\u043e\u0447\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c <strong>Model<\/strong>. \u041a\u043e\u0433\u0434\u0430 <strong>ViewModel<\/strong> \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043e\u0442 <strong>View<\/strong> \u0432\u044b\u0437\u043e\u0432 <strong>Intent<\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u0438, <strong>ViewModel<\/strong> \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 <strong>Model<\/strong> :<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.49.53.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12900 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.49.53.png\" alt=\"\" width=\"2520\" height=\"1408\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.49.53.png 2520w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.49.53-300x168.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.49.53-768x429.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.49.53-1024x572.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.49.53-500x279.png 500w\" sizes=\"auto, (max-width: 2520px) 100vw, 2520px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0418 \u043e\u043f\u044f\u0442\u044c <strong>ViewModel<\/strong> \u0437\u043d\u0430\u0435\u0442 \u0432\u0441\u0435 \u043e <strong>Model<\/strong>, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 <strong>Model<\/strong>. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e <strong>SQL<\/strong> \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u043e <strong>ViewModel<\/strong> \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 <strong>SQL<\/strong> \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f <strong>Model<\/strong>, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0442\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars<\/span><\/strong> \u0438\u043b\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u044e\u0442 <strong>Model<\/strong>. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0451, \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u0434\u043b\u044f \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u201c\u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0439\u201d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044e <strong>Model<\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0418\u0442\u0430\u043a, <strong>Model<\/strong> \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f.<br \/>\n\u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u0430\u043b\u044c\u0448\u0435?<br \/>\n\u0412 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0442\u043e, \u043e \u0447\u0435\u043c \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043f\u0440\u0435\u0436\u0434\u0435.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.00.05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12902 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.00.05.png\" alt=\"\" width=\"2516\" height=\"1410\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.00.05.png 2516w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.00.05-300x168.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.00.05-768x430.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.00.05-1024x574.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.00.05-500x280.png 500w\" sizes=\"auto, (max-width: 2516px) 100vw, 2516px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\"><strong>ViewModel<\/strong> \u0437\u0430\u043c\u0435\u0447\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 <strong>Model<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u044b, \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435: \u201c&lt;<b>\u0427\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c&#8230;<\/b>\u201d \u0417\u0430\u0442\u0435\u043c <strong>View<\/strong> \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u044d\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u201c<b>\u0427\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c&#8230;<\/b>\u201d \u0438 \u0410\u0412\u0422\u041e\u041c\u0410\u0422\u0418\u0427\u0415\u0421\u041a\u0418 \u201c\u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u201d \u0441\u0435\u0431\u044f.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12903 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53.png\" alt=\"\" width=\"2526\" height=\"1420\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53.png 2526w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53-300x169.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53-768x432.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53-1024x576.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-20.56.53-500x281.png 500w\" sizes=\"auto, (max-width: 2526px) 100vw, 2526px\" \/><\/a><br \/>\n\u0418 \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0451.<br \/>\n\u0412\u0441\u0435 \u044d\u0442\u0438 \u044d\u0442\u0430\u043f\u044b \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 <strong>MVVM<\/strong> \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443.<br \/>\n\u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u0442\u0430\u043a\u0436\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 <strong>Swift<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043a\u043e\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0435 \u044d\u0442\u0430\u043f\u044b, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438. \u041d\u043e \u044d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041a\u043b\u044e\u0447\u043e\u043c \u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e <strong>MVVM<\/strong> \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a\u0443\u044e \u0440\u043e\u043b\u044c \u0438\u0433\u0440\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u044d\u0442\u0438\u0445 3-\u0445 \u0432\u0435\u0449\u0435\u0439 &#8212; <strong>Model<\/strong>, <strong>View<\/strong> \u0438 <strong>ViewModel<\/strong>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0447\u0435\u0442\u043a\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0432 \u043a\u043e\u0434\u0435.<br \/>\n\u0412 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u0441\u0435\u0433\u043e\u0434\u043d\u044f, \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c <strong>MVVM<\/strong> \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u044b \u043d\u0430 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435.<br \/>\n\u041c\u044b \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c.<br \/>\n\u041d\u043e \u0435\u0441\u043b\u0438 \u0431\u044b \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438, \u0442\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u044d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043b\u043e\u0445\u043e.<br \/>\n\u042f \u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u043c\u044b \u0441\u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0435\u0437 <strong>MVVM<\/strong> \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u043d\u043e \u0435\u0441\u043b\u0438 \u0431\u044b \u0434\u0430\u0436\u0435 \u0441\u043c\u043e\u0433\u043b\u0438, \u0442\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e.<br \/>\n\u041c\u044b \u0445\u043e\u0442\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>MVVM<\/strong> \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u043e \u043f\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043c \u043c\u044b \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0442\u0435\u043c\u0443 &#8212; \u0422\u0418\u041f\u042b \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<strong> Swift<\/strong>.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.15.52.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12904 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.15.52.png\" alt=\"\" width=\"2226\" height=\"876\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.15.52.png 2226w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.15.52-300x118.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.15.52-768x302.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.15.52-1024x403.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-21.15.52-500x197.png 500w\" sizes=\"auto, (max-width: 2226px) 100vw, 2226px\" \/><\/a><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/b><\/h2>\n<ul>\n<li><strong><span style=\"color: #0000ff;\">MVVM<\/span><\/strong>\n<ul>\n<li><span style=\"font-weight: 400;\">\u041f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/span><\/li>\n<\/ul>\n<\/li>\n<li><strong><span style=\"color: #0000ff;\"><b>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0422\u0418\u041f\u043e\u0432<\/b><\/span><\/strong>\n<ul>\n<li><span style=\"font-weight: 400;\"><code><strong>struct<\/strong><\/code> &#8212; \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><code><strong>class<\/strong><\/code> &#8212; \u043a\u043b\u0430\u0441\u0441<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><strong>protocol<\/strong> &#8212; \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><code><strong>\u201cDon\u2019t Care\u201d<\/strong><\/code> \u0422\u0418\u041f (generic) &#8212; \u201c\u041d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d \u0422\u0418\u041f<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><strong>enum<\/strong> &#8212; \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><code><strong>functions<\/strong><\/code> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">\u041e \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <strong>Swift<\/strong> \u043c\u043e\u0436\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0438\u0437\u0443\u0447\u0430\u0442\u044c, \u043d\u043e \u043c\u044b \u043d\u0430\u0447\u043d\u0435\u043c \u0441 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0422\u0418\u041f\u041e\u0412 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <strong>Swift<\/strong>. \u0418\u0445 \u0443 \u043d\u0435\u0433\u043e 6.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #3366ff;\">&#8212;&#8212;- 15 -\u0430\u044f \u043c\u0438\u043d\u0443\u0442\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 &#8212;&#8212;&#8212;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u042d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b.<br \/>\n\u041a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0435\u0433\u043e.<br \/>\n\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b <strong><span style=\"color: #c3178b;\">protocol<\/span><\/strong>, \u043c\u044b \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b\u0438.<br \/>\n<strong><span style=\"color: #680da1;\">\u201c\u041d\u0435 \u0432\u0430\u0436\u043d\u043e, \u043a\u0430\u043a\u043e\u0439&#187;<\/span><\/strong> \u0422\u0418\u041f &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e <strong>generic<\/strong>.<br \/>\n\u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 <strong><span style=\"color: #c3178b;\">enum<\/span><\/strong>.<br \/>\n\u0424\u0443\u043d\u043a\u0446\u0438\u0438. \u0414\u0430, \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0422\u0418\u041f\u0430\u043c\u0438 \u0432 <strong>Swift<\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u043e \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e 4 \u0422\u0418\u041f\u0410: \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>, <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435 \u0432\u0430\u0436\u043d\u043e, \u043a\u0430\u043a\u043e\u0439&#187;<\/span><\/strong> \u0422\u0418\u041f \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<br \/>\n\u041e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 <strong><span style=\"color: #c3178b;\">protocol<\/span> <\/strong>\u0438 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438 <strong><span style=\"color: #c3178b;\">enum<\/span><\/strong> \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0435\u043c \u0441\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0438 \u043a\u043b\u0430\u0441\u0441\u0430 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>.<br \/>\n\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span> <\/strong>\u0438 \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043f\u043e\u0447\u0442\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e. \u0418\u0445 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436.<br \/>\n\u0423 \u043e\u0431\u043e\u0438\u0445 \u0435\u0441\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 (<i>stored<\/i>) \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong><span style=\"color: #c3178b;\">var<\/span> <span style=\"color: #137107;\">isFaceUp<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0432\u0438\u0434\u0435\u043b\u0438 \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u041b\u0435\u043a\u0446\u0438\u0438:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.13.34.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12907 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.13.34.png\" alt=\"\" width=\"1476\" height=\"380\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.13.34.png 1476w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.13.34-300x77.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.13.34-768x198.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.13.34-1024x264.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.13.34-500x129.png 500w\" sizes=\"auto, (max-width: 1476px) 100vw, 1476px\" \/><\/a><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <span style=\"color: #c3178b;\">struct<\/span> \u0438 \u041a\u043b\u0430\u0441\u0441 <span style=\"color: #c3178b;\">class<\/span><\/b><\/h2>\n<ul>\n<li><span style=\"color: #000000;\"><strong><b>\u041a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <\/b><span style=\"color: #c3178b;\"><b>struct<\/b><\/span><b>, \u0442\u0430\u043a \u0438 \u043a\u043b\u0430\u0441\u0441 <\/b><span style=\"color: #c3178b;\"><b>class <\/b><\/span><b>\u0438\u043c\u0435\u044e\u0442 &#8230;.<\/b><\/strong><\/span>\n<ul>\n<li><span style=\"font-weight: 400;\">\u2026 \u043f\u043e\u0447\u0442\u0438 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\"> (\u044d\u0442\u043e \u0442\u043e, \u043a \u0447\u0435\u043c\u0443 \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u043d\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438)<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><span style=\"color: #c3178b;\">var <span style=\"color: #137107;\">isFaceUp: Bool<\/span><\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">\u041a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0442\u0430\u043a \u0438 \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span> <\/strong>\u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0435 (<i>computed<\/i>) \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u0432\u0438\u0434\u0435\u043b\u0438 \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u041b\u0435\u043a\u0446\u0438\u0438, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e <strong><span style=\"color: #c3178b;\">var<\/span> <\/strong><span style=\"color: #137107;\">body<\/span>. \u0418\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0438\u0445 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442 \u0434\u043b\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0438\u043b\u0438 \u043a\u043b\u0430\u0441\u0441\u0430<strong><span style=\"color: #c3178b;\"> class<\/span><\/strong>:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.55.01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12908 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.55.01.png\" alt=\"\" width=\"1438\" height=\"498\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.55.01.png 1438w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.55.01-300x104.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.55.01-768x266.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.55.01-1024x355.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.55.01-500x173.png 500w\" sizes=\"auto, (max-width: 1438px) 100vw, 1438px\" \/><\/a><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <span style=\"color: #c3178b;\">struct<\/span> \u0438 \u041a\u043b\u0430\u0441\u0441 <span style=\"color: #c3178b;\">class<\/span><\/b><\/h2>\n<ul>\n<li><span style=\"color: #000000;\"><strong><b>\u041a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <\/b><span style=\"color: #c3178b;\"><b>struct<\/b><\/span><b>, \u0442\u0430\u043a \u0438 \u043a\u043b\u0430\u0441\u0441 <\/b><span style=\"color: #c3178b;\"><b>class <\/b><\/span><b>\u0438\u043c\u0435\u044e\u0442 &#8230;.<\/b><\/strong><\/span>\n<ul>\n<li><span style=\"font-weight: 400;\">\u2026 \u043f\u043e\u0447\u0442\u0438 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\"> (\u044d\u0442\u043e \u0442\u043e, \u043a \u0447\u0435\u043c\u0443 \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u043d\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars <\/span><\/strong>( \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0435, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u0434\u0430)<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 var <span style=\"color: #137107;\">body: <\/span>some <span style=\"color: #680da1;\">View<\/span> <span style=\"color: #000000;\">{<\/span><br \/>\n<span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0return\u00a0<\/span><span style=\"color: #680da1;\">Text (<\/span><span style=\"color: #ff0000;\">\u201cHello World\u201d<\/span><span style=\"color: #680da1;\">)<\/span><br \/>\n<span style=\"color: #000000;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0}<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">\u041e\u0431\u0430, \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <span style=\"color: #c3178b;\"><strong>struct<\/strong><\/span>, \u0438 \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u0438\u043c\u0435\u044e\u0442 \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong><span style=\"color: #c3178b;\">let<\/span><\/strong>s. \u041f\u043e \u0441\u0443\u0442\u0438\u00a0<strong><span style=\"color: #c3178b;\">let<\/span><\/strong> &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong><span style=\"color: #c3178b;\">var<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u041d\u0415 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0442\u043e \u0435\u0441\u0442\u044c \u0432\u043e\u0432\u0441\u0435 \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430 (<em>constant<\/em>)<\/span><span style=\"font-weight: 400;\">:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.58.04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12909 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.58.04.png\" alt=\"\" width=\"1494\" height=\"588\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.58.04.png 1494w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.58.04-300x118.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.58.04-768x302.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.58.04-1024x403.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-11.58.04-500x197.png 500w\" sizes=\"auto, (max-width: 1494px) 100vw, 1494px\" \/><\/a><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <span style=\"color: #c3178b;\">struct<\/span> \u0438 \u041a\u043b\u0430\u0441\u0441 <span style=\"color: #c3178b;\">class<\/span><\/b><\/h2>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><span style=\"color: #000000;\"><strong><b>\u041a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <\/b><span style=\"color: #c3178b;\"><b>struct<\/b><\/span><b>, \u0442\u0430\u043a \u0438 \u043a\u043b\u0430\u0441\u0441 <\/b><span style=\"color: #c3178b;\"><b>class <\/b><\/span><b>\u0438\u043c\u0435\u044e\u0442 &#8230;.<\/b><\/strong><\/span>\n<ul>\n<li><span style=\"font-weight: 400;\">\u2026 \u043f\u043e\u0447\u0442\u0438 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\"> (\u044d\u0442\u043e \u0442\u043e, \u043a \u0447\u0435\u043c\u0443 \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u043d\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars <\/span><\/strong>( \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0435, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u0434\u0430)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b <\/span><strong><span style=\"color: #c3178b;\">let<\/span><\/strong><span style=\"font-weight: 400;\">s <\/span><span style=\"font-weight: 400;\">( \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\">, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u041d\u0418\u041a\u041e\u0413\u0414\u0410 \u041d\u0415 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f)<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 let\u00a0<span style=\"color: #137107;\">defaultColor = <\/span><span style=\"color: #680da1;\">Color.orange<br \/>\n<span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0.\u00a0 .\u00a0 .\u00a0 .\u00a0 .\u00a0 .\u00a0 .\u00a0 .\u00a0 .<br \/>\n<span style=\"color: #680da1;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 CardView().<\/span><span style=\"color: #137107;\"><span style=\"color: #680da1;\">foregroundColor<\/span>\u00a0<\/span><\/span><\/span><span style=\"color: #680da1;\">(<span style=\"color: #137107;\">defaultColor<\/span>)<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">\u041a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0442\u0430\u043a \u0438 \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u0438\u043c\u0435\u044e\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-12.10.14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12910 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-12.10.14.png\" alt=\"\" width=\"1566\" height=\"656\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-12.10.14.png 1566w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-12.10.14-300x126.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-12.10.14-768x322.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-12.10.14-1024x429.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-12.10.14-500x209.png 500w\" sizes=\"auto, (max-width: 1566px) 100vw, 1566px\" \/><\/a><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <span style=\"color: #c3178b;\">struct<\/span> \u0438 \u041a\u043b\u0430\u0441\u0441 <span style=\"color: #c3178b;\">class<\/span><\/b><\/h2>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><span style=\"color: #000000;\"><strong><b>\u041a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <\/b><span style=\"color: #c3178b;\"><b>struct<\/b><\/span><b>, \u0442\u0430\u043a \u0438 \u043a\u043b\u0430\u0441\u0441 <\/b><span style=\"color: #c3178b;\"><b>class <\/b><\/span><b>\u0438\u043c\u0435\u044e\u0442 &#8230;.<\/b><\/strong><\/span>\n<ul>\n<li><span style=\"font-weight: 400;\">\u2026 \u043f\u043e\u0447\u0442\u0438 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\"> (\u044d\u0442\u043e \u0442\u043e, \u043a \u0447\u0435\u043c\u0443 \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u043d\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars <\/span><\/strong>( \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0435, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u0434\u0430)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b <\/span><strong><span style=\"color: #c3178b;\">let<\/span><\/strong><span style=\"font-weight: 400;\">s <\/span><span style=\"font-weight: 400;\">( \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\">, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u041d\u0418\u041a\u041e\u0413\u0414\u0410 \u041d\u0415 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0444\u0443\u043d\u043a\u0446\u0438\u0438 <\/span><strong><span style=\"color: #c3178b;\">func<\/span><\/strong><span style=\"font-weight: 400;\">tions <\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 func<span style=\"color: #137107;\"> multiply (\u00a0<span style=\"color: #ff0000;\">operand<\/span>:\u00a0<\/span><span style=\"color: #680da1;\">Int,<span style=\"color: #ff0000;\"> by<\/span><\/span><span style=\"color: #680da1;\"><span style=\"color: #137107;\">:\u00a0<\/span>Int) -&gt; Int {<br \/>\n<span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return <span style=\"color: #ff0000;\">operand<\/span> * <span style=\"color: #ff0000;\">by<\/span><\/span><\/span><\/span><br \/>\n<span style=\"color: #680da1;\"><span style=\"color: #c3178b;\"><span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0}<\/span><br \/>\n<span style=\"color: #680da1;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0multiply (<\/span><span style=\"color: #680da1;\"><span style=\"color: #137107;\"><span style=\"color: #ff0000;\">operand<\/span>: <span style=\"color: #0000ff;\">5<\/span>, <span style=\"color: #ff0000;\">by<\/span>: <span style=\"color: #0000ff;\">6<\/span><\/span><\/span><\/span><\/span><span style=\"color: #680da1;\">)<\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">\u0423 \u043d\u0430\u0441 \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u043b\u044f \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044c\u0442\u0435 \u043c\u043d\u0435 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0443\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<br \/>\n\u041c\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u043c\u0435\u044e\u0442 \u043c\u0435\u0442\u043a\u0438 (<i>labels<\/i>), \u0438 \u0443 \u043d\u0430\u0448\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong><span style=\"color: #680da1;\">multiply<\/span><\/strong> \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0434\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong><span style=\"color: #ff0000;\">operand<\/span><\/strong>, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 &#8212; <strong><span style=\"color: #ff0000;\">by<\/span><\/strong>, \u0438 \u043e\u0431\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0438\u043c\u0435\u044e\u0442 \u0422\u0418\u041f <strong><span style=\"color: #680da1;\">Int<\/span><\/strong>.\u00a0 \u0424\u0443\u043d\u043a\u0446\u0438\u044f <strong><span style=\"color: #680da1;\">multiply<\/span><\/strong> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <strong><span style=\"color: #680da1;\">Int<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f <strong>operand<\/strong> \u043d\u0430 <strong><span style=\"color: #ff0000;\">by.<\/span><\/strong> \u0418 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong><span style=\"color: #680da1;\">multiply<\/span><\/strong> \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u044d\u0442\u0438\u00a0\u043c\u0435\u0442\u043a\u0438 (<i>labels<\/i>), \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<br \/>\n\u0422\u0430\u043a \u0447\u0442\u043e \u044f \u043c\u043e\u0433\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u00a0<strong><span style=\"color: #680da1;\">multiply (<\/span><span style=\"color: #ff0000;\">operand<\/span><\/strong>: <strong>5<\/strong>, <strong><span style=\"color: #ff0000;\">by<\/span><\/strong>: <strong><span style=\"color: #0000ff;\">6<\/span><span style=\"color: #680da1;\">)<\/span><\/strong><br \/>\n\u0418 \u044d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u0435\u0440\u043d\u0435\u0442 \u043d\u0430\u043c <strong><span style=\"color: #0000ff;\">30<\/span><\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u043e \u044f \u0445\u043e\u0447\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0431 \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u043a\u0438 (<i>labels<\/i>).<br \/>\n\u0412 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c 2 \u043c\u0435\u0442\u043a\u0438 (<i>labels<\/i>):<\/span><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <span style=\"color: #c3178b;\">struct<\/span> \u0438 \u041a\u043b\u0430\u0441\u0441 <span style=\"color: #c3178b;\">class<\/span><\/b><\/h2>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><span style=\"color: #000000;\"><strong><b>\u041a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <\/b><span style=\"color: #c3178b;\"><b>struct<\/b><\/span><b>, \u0442\u0430\u043a \u0438 \u043a\u043b\u0430\u0441\u0441 <\/b><span style=\"color: #c3178b;\"><b>class <\/b><\/span><b>\u0438\u043c\u0435\u044e\u0442 &#8230;.<\/b><\/strong><\/span>\n<ul>\n<li><span style=\"font-weight: 400;\">\u2026 \u043f\u043e\u0447\u0442\u0438 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\"> (\u044d\u0442\u043e \u0442\u043e, \u043a \u0447\u0435\u043c\u0443 \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u043d\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars <\/span><\/strong>( \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0435, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u0434\u0430)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b <\/span><strong><span style=\"color: #c3178b;\">let<\/span><\/strong><span style=\"font-weight: 400;\">s <\/span><span style=\"font-weight: 400;\">( \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\">, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u041d\u0418\u041a\u041e\u0413\u0414\u0410 \u041d\u0415 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0444\u0443\u043d\u043a\u0446\u0438\u0438 <\/span><strong><span style=\"color: #c3178b;\">func<\/span><\/strong><span style=\"font-weight: 400;\">tions <\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 func<span style=\"color: #137107;\"> multiply (\u00a0<span style=\"color: #ff0000;\">operand<\/span>:\u00a0<\/span><span style=\"color: #680da1;\">Int,<span style=\"color: #ff0000;\"> by<\/span><\/span><span style=\"color: #680da1;\"><span style=\"color: #137107;\">:\u00a0<\/span>Int) -&gt; Int {<br \/>\n<span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return <span style=\"color: #ff0000;\">operand<\/span> * <span style=\"color: #ff0000;\">by<\/span><br \/>\n<span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0}<\/span><br \/>\n<span style=\"color: #680da1;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0multiply (<span style=\"color: #680da1;\">operand<\/span>: <span style=\"color: #0000ff;\">5<\/span>, <span style=\"color: #ff0000;\">by<\/span>: <span style=\"color: #0000ff;\">6<\/span><\/span><\/span><span style=\"color: #680da1;\">)<\/span><\/span><\/span><\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 func<span style=\"color: #137107;\"> multiply (<span style=\"color: #0000ff;\">_<\/span>\u00a0<span style=\"color: #c3178b;\">operand:\u00a0<\/span><span style=\"color: #680da1;\">Int,<span style=\"color: #ff0000;\"><span style=\"color: #0000ff;\"> by<\/span> <span style=\"color: #c3178b;\">otherOperand<\/span><\/span><\/span><span style=\"color: #680da1;\"><span style=\"color: #137107;\">:\u00a0<\/span>Int) -&gt; Int {<br \/>\n<span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return <span style=\"color: #c3178b;\">operand<\/span> * <span style=\"color: #c3178b;\">otherOperand<\/span><br \/>\n<span style=\"color: #680da1;\"><span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<br \/>\n<span style=\"color: #680da1;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0multiply<\/span> (<span style=\"color: #137107;\">\u00a0<span style=\"color: #0000ff;\">5<\/span>, <span style=\"color: #0000ff;\">by<\/span>: <span style=\"color: #0000ff;\">6<\/span><\/span><\/span><\/span><span style=\"color: #680da1;\">)<\/span><\/span><\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">\u0423 \u043c\u0435\u043d\u044f \u043e\u043f\u044f\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong><span style=\"color: #137107;\">multiply<\/span><\/strong>, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0434\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430, \u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e \u0434\u0432\u0435 \u043c\u0435\u0442\u043a\u0438 (<i>labels<\/i>).<br \/>\n\u0423 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u0432\u0435 \u043c\u0435\u0442\u043a\u0438: <strong><span style=\"color: #0000ff;\">_<\/span><\/strong> (<strong><span style=\"color: #0000ff;\">\u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435<\/span><\/strong>) \u0438 <strong><span style=\"color: #c3178b;\">operand<\/span><\/strong>.<br \/>\n\u0423 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u0432\u0435 \u043c\u0435\u0442\u043a\u0438: <strong><span style=\"color: #0000ff;\">by<\/span><\/strong> \u0438 <strong><span style=\"color: #c3178b;\">otherOperand<\/span><\/strong>.<br \/>\n\u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u043f\u043e 2 \u043c\u0435\u0442\u043a\u0438: \u043e\u0434\u043d\u0430 \u043e\u043a\u0440\u0430\u0448\u0435\u043d\u0430 \u0432 <strong><span style=\"color: #0000ff;\">\u0433\u043e\u043b\u0443\u0431\u043e\u0439<\/span><\/strong> \u0446\u0432\u0435\u0442, \u0430 \u0434\u0440\u0443\u0433\u0430\u044f \u0432 <strong><span style=\"color: #c3178b;\">\u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u0439<\/span><\/strong>.<br \/>\n\u041d\u043e \u0437\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u043d\u044b 2 \u043c\u0435\u0442\u043a\u0438?<br \/>\n<strong>\u0413\u043e\u043b\u0443\u0431\u0430\u044f<\/strong> \u043c\u0435\u0442\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0430 <strong><span style=\"color: #c3178b;\">\u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u0430\u044f<\/span><\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<br \/>\n<strong><span style=\"color: #c3178b;\">\u0424\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u044b\u0435<\/span><\/strong> \u043c\u0435\u0442\u043a\u0438 \u0432\u0435\u0434\u0443\u0442 \u0441\u0435\u0431\u044f \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0436\u0435, \u043a\u0430\u043a \u0438 \u043c\u0435\u0442\u043a\u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong><span style=\"color: #137107;\">multiply<\/span><\/strong>, \u0442\u043e \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <strong><span style=\"color: #c3178b;\">operand<\/span><\/strong> * <strong><span style=\"color: #c3178b;\">otherOperand<\/span><\/strong>. \u0418\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<br \/>\n\u041d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:\u00a0 <strong><span style=\"color: #137107;\">multiply (<\/span><span style=\"color: #0000ff;\">5<\/span><\/strong>, <strong><span style=\"color: #0000ff;\">by<\/span><\/strong>: <strong><span style=\"color: #0000ff;\">6<\/span><span style=\"color: #137107;\">)<\/span><\/strong>.<br \/>\n\u041c\u0435\u0442\u043a\u0430\u00a0 <strong><span style=\"color: #0000ff;\">_<\/span><\/strong> (<strong><span style=\"color: #0000ff;\">\u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435<\/span><\/strong>) \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u041d\u0415\u0422 \u043c\u0435\u0442\u043a\u0438 \u0443 \u044d\u0442\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.<br \/>\n\u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u044d\u043c\u043e\u0434\u0436\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<strong><span style=\"color: #680da1;\">Text (<\/span><span style=\"color: #ff0000;\">&#171;Hello There, World!<\/span><\/strong>&#171;<strong><span style=\"color: #680da1;\">)<\/span><\/strong> \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <strong><span style=\"color: #0000ff;\">_<\/span> <\/strong>(<strong><span style=\"color: #0000ff;\">\u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f<\/span><\/strong>) \u0433\u0434\u0435-\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e \u0432 <strong>Swift<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <strong><span style=\"color: #0000ff;\">_ <\/span><\/strong>(<strong><span style=\"color: #0000ff;\">\u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f<\/span><\/strong>) \u0412\u0421\u0415\u0413\u0414\u0410 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u044d\u0442\u043e \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u201c\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439\u201d \u0441\u0438\u043c\u0432\u043e\u043b. \u041c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u044d\u0442\u043e \u0432 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0435\u043c \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435.<br \/>\n\u0414\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0433\u043e\u043b\u0443\u0431\u0430\u044f \u043c\u0435\u0442\u043a\u0430 <strong><span style=\"color: #0000ff;\">by<\/span><\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0432\u043d\u0435\u0448\u043d\u0435\u0435 \u0438\u043c\u044f (<em>external name<\/em>) \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0414\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <strong><span style=\"color: #c3178b;\">\u0444\u0438\u043e\u043b\u0435\u0442\u043e\u0432\u0430\u044f<\/span><\/strong> \u043c\u0435\u0442\u043a\u0430 <strong><span style=\"color: #c3178b;\">otherOperand<\/span><\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0435 \u0438\u043c\u044f (<em>internal name<\/em>) \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<br \/>\n\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u043e\u043b\u0435\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u044d\u0442\u043e \u043f\u043e\u0437\u0436\u0435, \u043d\u043e \u044d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u0438 \u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0438 \u0443 \u043a\u043b\u0430\u0441\u0441\u0430 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041a\u0430\u043a \u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0442\u0430\u043a \u0438 \u0443 \u043a\u043b\u0430\u0441\u0441\u0430 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u0435\u0441\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0418\u041d\u0418\u0426\u0418\u0410\u041b\u0418\u0417\u0410\u0422\u041e\u0420\u0410\u041c\u0418 (<em>initializers<\/em>).<br \/>\n\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0438\u043b\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 vars.<br \/>\n\u041c\u044b \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b\u0438 \u044d\u0442\u043e \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043a\u0430\u0440\u0442\u044b <strong><span style=\"color: #137107;\"><span style=\"color: #680da1;\">CardView<\/span> <span style=\"color: #000000;\">(<\/span>isFaceUp: <span style=\"color: #c3178b;\">true<\/span><span style=\"color: #000000;\">)<\/span><\/span><\/strong>. \u041f\u043e\u043c\u043d\u0438\u0442\u0435 \u043a\u0430\u0440\u0442\u0443 <strong><span style=\"color: #680da1;\">CardView<\/span><\/strong>? \u041c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043a\u0430\u0440\u0442\u0443 \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c <strong><span style=\"color: #137107;\">isFaceUp<\/span><\/strong> \u0440\u0430\u0432\u043d\u044b\u043c <strong><span style=\"color: #c3178b;\">true<\/span><\/strong> \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong><span style=\"color: #c3178b;\">var<\/span><\/strong> <strong><span style=\"color: #137107;\">isFaceUp<\/span><\/strong> \u0432 \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 <strong><span style=\"color: #c3178b;\">struct<\/span> <span style=\"color: #680da1;\">CardView<\/span><\/strong>.<br \/>\n\u041c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043d\u043e \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars<\/span><\/strong>?<br \/>\n\u0418 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a\u043e\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438\u00a0 &#8212; \u044d\u0442\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043d\u0430\u0448\u0435\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u044b \u043d\u0430 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 <strong><span style=\"color: #680da1;\">MemoryGame<\/span><\/strong>:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.31.52.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12912 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.31.52.png\" alt=\"\" width=\"1548\" height=\"762\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.31.52.png 1548w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.31.52-300x148.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.31.52-768x378.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.31.52-1024x504.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.31.52-500x246.png 500w\" sizes=\"auto, (max-width: 1548px) 100vw, 1548px\" \/><\/a><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <span style=\"color: #c3178b;\">struct<\/span> \u0438 \u041a\u043b\u0430\u0441\u0441 <span style=\"color: #c3178b;\">class<\/span><\/b><\/h2>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><span style=\"color: #000000;\"><strong><b>\u041a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <\/b><span style=\"color: #c3178b;\"><b>struct<\/b><\/span><b>, \u0442\u0430\u043a \u0438 \u043a\u043b\u0430\u0441\u0441 <\/b><span style=\"color: #c3178b;\"><b>class <\/b><\/span><b>\u0438\u043c\u0435\u044e\u0442 &#8230;.<\/b><\/strong><\/span>\n<ul>\n<li><span style=\"font-weight: 400;\">\u2026 \u043f\u043e\u0447\u0442\u0438 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\"> (\u044d\u0442\u043e \u0442\u043e, \u043a \u0447\u0435\u043c\u0443 \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u043d\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars <\/span><\/strong>( \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0435, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u0434\u0430)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b <\/span><strong><span style=\"color: #c3178b;\">let<\/span><\/strong><span style=\"font-weight: 400;\">s <\/span><span style=\"font-weight: 400;\">( \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\">, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u041d\u0418\u041a\u041e\u0413\u0414\u0410 \u041d\u0415 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0444\u0443\u043d\u043a\u0446\u0438\u0438 <\/span><strong><span style=\"color: #c3178b;\">func<\/span><\/strong><span style=\"font-weight: 400;\">tions<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b <\/span><strong><span style=\"color: #c3178b;\">init<\/span><\/strong><span style=\"font-weight: 400;\">s (\u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <\/span><strong><span style=\"color: #c3178b;\">struct<\/span><\/strong><span style=\"font-weight: 400;\"> \u0438\u043b\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 <\/span><strong><span style=\"color: #c3178b;\">class<\/span><\/strong><span style=\"font-weight: 400;\">)<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\"><span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 struct<span style=\"color: #137107;\">\u00a0MemoryGame {<\/span><span style=\"color: #680da1;\"><br \/>\n<span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0init (<span style=\"color: #0000ff;\">numberOfPairsOfCards: Int<\/span>) <span style=\"color: #000000;\">{\u00a0<\/span><\/span><\/span><\/span><br \/>\n<span style=\"color: #680da1;\"><span style=\"color: #c3178b;\"><span style=\"color: #c3178b;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <span style=\"color: #000000;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/\/ \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u0433\u0440\u044b \u0441 \u044d\u0442\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0430\u0440 \u043a\u0430\u0440\u0442<\/span><\/span><br \/>\n<span style=\"color: #680da1;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0}<\/span><\/span><br \/>\n<span style=\"color: #680da1;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0}<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 <strong><span style=\"color: #c3178b;\">vars<\/span><\/strong> \u044d\u0442\u043e\u0439 \u0438\u0433\u0440\u044b <strong><span style=\"color: #137107;\">MemoryGame<\/span><\/strong> \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u0440\u0442\u044b <span style=\"color: #5d08bf;\"><strong>cards<\/strong><\/span>, \u043d\u043e \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0438\u0433\u0440\u044b <strong><span style=\"color: #137107;\">MemoryGame<\/span><\/strong> \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440 \u043a\u0430\u0440\u0442 \u0431\u0443\u0434\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0439 \u0438\u0433\u0440\u0435.<br \/>\n\u0422\u043e \u0435\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u0431\u0443\u0434\u0435\u0442 \u043b\u0438 \u044d\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0438\u0433\u0440\u0430 <strong><span style=\"color: #137107;\">MemoryGame<\/span><\/strong> \u0441 20 \u043f\u0430\u0440\u0430\u043c\u0438 \u043a\u0430\u0440\u0442 \u0438\u043b\u0438 \u0441\u043e\u0432\u0441\u0435\u043c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u0441 6 \u043f\u0430\u0440\u0430\u043c\u0438 \u043a\u0430\u0440\u0442.<br \/>\n\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043d\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 <strong><span style=\"color: #0000ff;\">numberOfPairsOfCards<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u0422\u0418\u041f <strong><span style=\"color: #5d08bf;\">Int<\/span><\/strong>, \u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u044c\u043c\u0435\u0442 \u044d\u0442\u043e\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442, \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<strong><span style=\"color: #c3178b;\"> struct<\/span><\/strong> <strong>MemoryGame<\/strong>.<br \/>\n\u0421\u0430\u043c\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0442\u043e, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u043a\u0438\u0445 \u0443\u0433\u043e\u0434\u043d\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 <strong><span style=\"color: #c3178b;\">inits<\/span><\/strong>, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u043c\u0435\u0435\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<br \/>\n\u0422\u0430\u043a \u0447\u0442\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f \u0438\u0433\u0440\u044b <strong><span style=\"color: #137107;\">MemoryGame<\/span><\/strong>.<br \/>\n\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0438 \u043a\u043b\u0430\u0441\u0441\u044b <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>, \u043e\u0431\u0430 \u0438\u043c\u0435\u044e\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b <strong><span style=\"color: #c3178b;\">inits<\/span><\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u043e \u0432 \u0447\u0435\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0438 \u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>?\u00a0<\/span><br \/>\n<span style=\"font-weight: 400; color: #3366ff;\">&#8212;&#8212;- 20 -\u0430\u044f \u043c\u0438\u043d\u0443\u0442\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 &#8212;&#8212;&#8212;<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.59.58.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12913 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.59.58.png\" alt=\"\" width=\"1528\" height=\"574\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.59.58.png 1528w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.59.58-300x113.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.59.58-768x289.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.59.58-1024x385.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-15.59.58-500x188.png 500w\" sizes=\"auto, (max-width: 1528px) 100vw, 1528px\" \/><\/a><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <span style=\"color: #c3178b;\">struct<\/span> \u0438 \u041a\u043b\u0430\u0441\u0441 <span style=\"color: #c3178b;\">class<\/span><\/b><\/h2>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><span style=\"color: #000000;\"><strong><b>\u041a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <\/b><span style=\"color: #c3178b;\"><b>struct<\/b><\/span><b>, \u0442\u0430\u043a \u0438 \u043a\u043b\u0430\u0441\u0441 <\/b><span style=\"color: #c3178b;\"><b>class <\/b><\/span><b>\u0438\u043c\u0435\u044e\u0442 &#8230;.<\/b><\/strong><\/span>\n<ul>\n<li><span style=\"font-weight: 400;\">\u2026 \u043f\u043e\u0447\u0442\u0438 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\"> (\u044d\u0442\u043e \u0442\u043e, \u043a \u0447\u0435\u043c\u0443 \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u043e\u043d\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars <\/span><\/strong>( \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0435, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u0434\u0430)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b <\/span><strong><span style=\"color: #c3178b;\">let<\/span><\/strong><span style=\"font-weight: 400;\">s <\/span><span style=\"font-weight: 400;\">( \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <\/span><strong><span style=\"color: #c3178b;\">vars<\/span><\/strong><span style=\"font-weight: 400;\">, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u041d\u0418\u041a\u041e\u0413\u0414\u0410 \u041d\u0415 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0444\u0443\u043d\u043a\u0446\u0438\u0438 <\/span><strong><span style=\"color: #c3178b;\">func<\/span><\/strong><span style=\"font-weight: 400;\">tions<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b <\/span><strong><span style=\"color: #c3178b;\">init<\/span><\/strong><span style=\"font-weight: 400;\">s (\u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <\/span><strong><span style=\"color: #c3178b;\">struct<\/span><\/strong><span style=\"font-weight: 400;\"> \u0438\u043b\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 <\/span><strong><span style=\"color: #c3178b;\">class<\/span><\/strong><span style=\"font-weight: 400;\">)<\/span><\/li>\n<li><span style=\"font-weight: 400;\">\u0412 \u0447\u0435\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <\/span><strong><span style=\"color: #c3178b;\">struct<\/span><\/strong><span style=\"font-weight: 400;\"> \u0438\u043b\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 <\/span><strong><span style=\"color: #c3178b;\">class<\/span><\/strong><span style=\"font-weight: 400;\"> ?<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">\u041e\u043d\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438, \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u043e\u0445\u043e\u0436\u0438\u043c\u0438, \u043d\u043e \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0439,\u00a0 \u0438 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043d\u0438\u0445.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.03.42.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12914 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.03.42.png\" alt=\"\" width=\"1478\" height=\"784\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.03.42.png 1478w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.03.42-300x159.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.03.42-768x407.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.03.42-1024x543.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.03.42-500x265.png 500w\" sizes=\"auto, (max-width: 1478px) 100vw, 1478px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.04.22.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12915 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.04.22.png\" alt=\"\" width=\"1548\" height=\"730\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.04.22.png 1548w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.04.22-300x141.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.04.22-768x362.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.04.22-1024x483.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-16.04.22-500x236.png 500w\" sizes=\"auto, (max-width: 1548px) 100vw, 1548px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">VALUE &#8212; REFERENCE<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong>Value<\/strong> \u0422\u0418\u041f\u043e\u043c, \u0430 \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> &#8212; <strong>Reference<\/strong> \u0422\u0418\u041f\u043e\u043c. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 <strong>Value<\/strong> \u0422\u0418\u041f \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c <strong>Reference<\/strong> \u0422\u0418\u041f\u0443.<br \/>\n<strong>Reference<\/strong> \u0422\u0418\u041f \u043f\u043e\u0432\u0441\u044e\u0434\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 (<em>pointers<\/em>). <strong>Reference<\/strong> \u0422\u0418\u041f\u044b \u201c\u0436\u0438\u0432\u0443\u0442\u201d \u0432 \u201c\u043a\u0443\u0447\u0435\u201d (<em>heap<\/em>). \u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u043a\u043b\u0430\u0441\u0441\u044b <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>, \u0442\u043e \u043e\u043d\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u201c\u043a\u0443\u0447\u0435\u201d\u00a0(<em>heap<\/em>).<br \/>\n\u0412\u0441\u0435 \u0437\u043d\u0430\u044e\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442?<br \/>\n\u041e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u201c\u043f\u0430\u043c\u044f\u0442\u0438\u201d \u0438, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043a\u0443\u0434\u0430-\u0442\u043e \u044d\u0442\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442 \u0435\u0451 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 (<em>pointers<\/em>) \u043d\u0430 \u043d\u0435\u0451. \u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043b\u044e\u0434\u0435\u0439 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0433\u0434\u0435-\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (<em>pointer<\/em>) \u043d\u0430 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">COW &#8212; ARC<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u041d\u0415 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 (<em>pointers<\/em>), \u043e\u043d\u0438 \u041a\u041e\u041f\u0418\u0420\u0423\u042e\u0422\u0421\u042f. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430, \u0442\u043e \u044d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043a\u043e\u043f\u0438\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<strong><span style=\"color: #c3178b;\"> struct<\/span><\/strong>, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong><span style=\"color: #c3178b;\">var<\/span> <span style=\"color: #137107;\">one<\/span> <\/strong>\u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong><span style=\"color: #c3178b;\">var<\/span> <span style=\"color: #137107;\">another<\/span><\/strong>, \u0442\u043e \u0435\u0441\u043b\u0438 \u044f \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043f\u0440\u0438\u0441\u0432\u043e\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439\u00a0<strong><span style=\"color: #137107;\">one<\/span> <span style=\"color: #680da1;\">=<\/span><\/strong> <strong><span style=\"color: #137107;\">another<\/span><\/strong>, \u0442\u043e \u043e\u0431\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043a\u043e\u043f\u0438\u044f\u043c\u0438 \u0441\u0432\u043e\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445.<br \/>\n\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c: \u201c\u0414\u0430 \u0432\u044b \u0438\u0437\u0434\u0435\u0432\u0430\u0435\u0442\u0435\u0441\u044c \u043d\u0430\u0434\u043e \u043c\u043d\u043e\u0439? \u042f \u0434\u0435\u043b\u0430\u044e \u043a\u043e\u043f\u0438\u044e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u0435\u0441\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u0435\u0440\u0435\u0434\u0430\u044e \u0435\u0433\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438\u043b\u0438 \u043a\u0443\u0434\u0430-\u0442\u043e \u0435\u0449\u0451?\u201d<br \/>\n\u041e\u0422\u0412\u0415\u0422: \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>\n\u201c\u0417\u0430 \u043a\u0443\u043b\u0438\u0441\u0430\u043c\u0438\u201d \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0442\u0430\u043a\u0438\u0445 \u0432\u0435\u0449\u0435\u0439, \u043a\u0430\u043a \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong>, <strong>Swift<\/strong> \u201c\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u201d \u044d\u0442\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u043d\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0435 \u0432 \u0441\u043c\u044b\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u043d \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0431\u0438\u0442 \u0437\u0430 \u0431\u0438\u0442\u043e\u043c, \u0430 \u0432 \u0442\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435, \u0447\u0442\u043e \u043f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u0449\u0430\u044f \u043a\u043e\u043f\u0438\u044f, \u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0438) &#8212; \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u043a\u043e\u043f\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0437\u0430\u0442\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0435 \u0435\u0433\u043e \u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0447\u0442\u043e-\u0442\u043e \u0432 \u044d\u0442\u043e\u0442 \u043c\u0430\u0441\u0441\u0438\u0432. \u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0447\u0442\u043e-\u0442\u043e \u0432 \u043c\u0430\u0441\u0441\u0438\u0432, \u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0431\u0438\u0442\u043e\u0432\u0430\u044f \u043a\u043e\u043f\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u00a0<strong><span style=\"color: #680da1;\">Array<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0435\u0433\u043e-\u0442\u043e &#8212; \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u0430\u044f \u043a\u043e\u043f\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u00a0<strong><span style=\"color: #680da1;\">Array<\/span><\/strong>, \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0449\u0430\u044f\u0441\u044f \u043e\u0442 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u00a0 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u00a0<strong><span style=\"color: #680da1;\">Array<\/span><\/strong>.<br \/>\n\u042d\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f Copy-On-Write (<strong>COW<\/strong>), \u0442\u043e \u0435\u0441\u0442\u044c \u201c\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0438\u201d. \u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0435 \u0447\u0442\u043e-\u0442\u043e \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <span style=\"color: #c3178b;\"><strong>struct<\/strong><\/span>, \u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u043e\u043f\u0438\u044f.<br \/>\n\u041d\u043e \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0435 \u043a\u0443\u0434\u0430-\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0442\u043e \u043e\u043d\u0430 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0412\u0421\u0415\u0413\u0414\u0410 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<br \/>\n\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u041d\u0418\u041a\u041e\u0413\u0414\u0410 \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043e\u0431\u0449\u0438\u043c\u0438 (<em>shared<\/em>) \u044d\u0442\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>,\u00a0\u043e\u043d\u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<br \/>\n\u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u043f\u043e\u0432\u0441\u044e\u0434\u0443 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0441\u0435\u0431\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0438\u0434\u0435\u0442 \u043f\u043e\u0434\u0441\u0447\u0435\u0442 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u043d\u0435\u0433\u043e. \u0421\u043c\u043e\u0442\u0440\u0438\u043c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u0441\u044b\u043b\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u044d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441, \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0438 \u0435\u0441\u043b\u0438 \u043d\u0435 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u0432 \u201c\u043a\u0443\u0447\u0435\u201d \u043d\u0430 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043a\u043b\u0430\u0441\u0441, \u0442\u043e \u043e\u043d \u0443\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u201c\u043a\u0443\u0447\u0438\u201d. \u042d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f\u00a0 \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u041f\u043e\u0434\u0441\u0447\u0435\u0442\u043e\u043c \u0421\u0441\u044b\u043b\u043e\u043a (Automatic Reference Counting \u0438\u043b\u0438 <strong>ARC<\/strong>).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0424\u0423\u041d\u041a\u0426\u0418\u041e\u041d\u0410\u041b\u042c\u041d\u041e\u0415\u00a0 &#8212; \u041e\u0411\u042a\u0415\u041a\u0422\u041d\u041e_\u041e\u0420\u0418\u0415\u041d\u0422\u0418\u0420\u041e\u0412\u0410\u041d\u041d\u041e\u0415<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0418\u0442\u0430\u043a, \u0443 \u043d\u0430\u0441 \u0434\u0432\u0430 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e \u041c\u0438\u0440\u0435.<br \/>\n\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (<em>pointer<\/em>).<br \/>\n\u0411\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435, \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>. \u042d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u044b <strong><span style=\"color: #680da1;\">Array<\/span><\/strong>, \u0441\u043b\u043e\u0432\u0430\u0440\u0438 <span style=\"color: #680da1;\"><strong>Dictionary<\/strong><\/span>, \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430<strong><span style=\"color: #680da1;\"> Int<\/span><\/strong>, \u0431\u0443\u043b\u0435\u0432\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <strong><span style=\"color: #680da1;\">Bool<\/span><\/strong>, \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0441 \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e <strong><span style=\"color: #680da1;\">Double<\/span><\/strong>, \u0432\u0441\u0435 \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>.<br \/>\n\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0431\u044b\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c<\/strong>. <strong>\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/strong> \u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0424\u0423\u041d\u041a\u0426\u0418\u041e\u041d\u0410\u041b\u042c\u041d\u041e\u0421\u0422\u0418 \u0432\u0435\u0449\u0435\u0439.<br \/>\n\u041a\u043b\u0430\u0441\u0441\u044b <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u0434\u043b\u044f <strong>\u041e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/strong>. <strong>\u041e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/strong> \u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0418\u041d\u041a\u0410\u041f\u0421\u0423\u041b\u042f\u0426\u0418\u0418 \u0414\u0410\u041d\u041d\u042b\u0425 \u0438 \u0424\u0423\u041d\u041a\u0426\u0418\u041e\u041d\u0410\u041b\u042c\u041d\u041e\u0421\u0422\u0418 \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435, \u043e\u0431\u044a\u0435\u043a\u0442\u0435.<br \/>\n\u042d\u0442\u043e \u0434\u0432\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 \u041c\u0438\u0440\u0430. \u041e\u043d\u0438 \u043e\u0431\u0435 \u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0432 \u0441\u0435\u0431\u044f \u043e\u0442\u0447\u0430\u0441\u0442\u0438 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u0433\u0434\u0435 \u201c\u0436\u0438\u0432\u0435\u0442\u201d \u0424\u0423\u041d\u041a\u0426\u0418\u041e\u041d\u0410\u041b\u042c\u041d\u041e\u0421\u0422\u042c \u0432 \u0432\u0430\u0448\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435. \u041d\u043e \u0434\u0435\u043b\u0430\u044e\u0442 \u044d\u0442\u043e \u043e\u043d\u0438 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438.<br \/>\n\u041e\u0431 \u044d\u0442\u043e\u043c \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u0422\u0418\u041f\u042b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043d\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b: \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435 \u0438\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (<em>pointer<\/em>) \u043d\u0430 \u043d\u0438\u0445. \u0418 \u044d\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044e.<br \/>\n\u0412 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u043c\u0435\u0441\u0442\u0440\u0430 \u043c\u044b \u043c\u043d\u043e\u0433\u043e\u0435 \u0443\u0437\u043d\u0430\u0435\u043c \u043e <strong>\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438<\/strong> \u0438 \u043a\u0430\u043a \u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0423\u0436\u0435 \u0432 \u043a\u043e\u043d\u0446\u0435 \u044d\u0442\u043e\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u041b\u0435\u043a\u0446\u0438\u0438 \u043c\u044b \u043c\u043d\u043e\u0433\u043e\u0435 \u043f\u043e\u0439\u043c\u0435\u043c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e <strong>\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/strong>.<br \/>\n\u042f \u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0438\u0437 \u0432\u0430\u0441 \u0437\u043d\u0430\u0435\u0442, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <strong>\u041e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/strong>. \u0412\u044b \u0443\u0436\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043d\u0430 <strong>Java<\/strong> \u0438\u043b\u0438 <strong>C++<\/strong> \u0438\u043b\u0438 \u043d\u0430 \u0447\u0435\u043c-\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u043c.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u0410\u0421\u041b\u0415\u0414\u041e\u0412\u0410\u041d\u0418\u0415<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u041d\u0415 \u0438\u043c\u0435\u044e\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f <em>(inheritance<\/em>). \u0412 <strong>\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438<\/strong> \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430 \u0432 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438. \u0423 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 (<em>inheritance<\/em>) \u0432 <strong>\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438<\/strong>, \u0438 \u0432\u044b \u044d\u0442\u043e \u0443\u0432\u0438\u0434\u0438\u0442\u0435, \u043d\u043e \u043d\u0435 \u0441\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438<strong><span style=\"color: #c3178b;\"> struct<\/span><\/strong>.<br \/>\n\u0423 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u041d\u0415\u0422 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f (<em>inheritance<\/em>).<br \/>\n\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b <span style=\"color: #c3178b;\">class<\/span> \u0432 <strong>Swift<\/strong>, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0438\u043c\u0435\u044e\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 (<em>inheritance<\/em>).<br \/>\n\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0443 \u043d\u0438\u0445 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c <strong>superclass<\/strong>, \u0435\u0441\u043b\u0438 \u0432\u044b \u044d\u0442\u043e\u0433\u043e \u0445\u043e\u0442\u0438\u0442\u0435, \u043d\u043e \u044d\u0442\u043e \u201c\u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0435\u201d \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 (<em>single inheritance<\/em>). \u041e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>.<br \/>\n\u042d\u0442\u043e \u0442\u043e, \u043a \u0447\u0435\u043c\u0443 \u043c\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438. \u0422\u0430\u043a \u0443 <strong>Java<\/strong> \u0442\u043e\u0436\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u201c\u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0435\u201d \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435, <strong>C++<\/strong> \u0438\u043c\u0435\u0435\u0442 \u201c\u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0435\u201d \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u00a0 \u0438 \u0442.\u0434.<br \/>\n\u041e\u0422\u0421\u0423\u0422\u0421\u0422\u0412\u0418\u0415 \u0438 \u041d\u0410\u041b\u0418\u0427\u0418\u0415 \u041d\u0410\u0421\u041b\u0415\u0414\u041e\u0412\u0410\u041d\u0418\u042f &#8212; \u044d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0438 \u043a\u043b\u0430\u0441\u0441\u043e\u043c <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0418\u041d\u0418\u0426\u0418\u0410\u041b\u0418\u0417\u0410\u0426\u0418\u042f<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u042f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0432\u0430\u043c \u043e\u0431 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <strong><span style=\"color: #680da1;\">init<\/span><\/strong>. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u201c\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e\u201d \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 <strong><span style=\"color: #680da1;\">init<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars<\/span><\/strong> \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435. \u0418\u043c\u0435\u044f \u201c\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439\u201d \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars<\/span><\/strong>, \u043c\u044b \u0441\u043c\u043e\u0433\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <strong><span style=\"color: #137107;\">CardView (<\/span><span style=\"color: #680da1;\">isFaceUp:<\/span> <span style=\"color: #c3178b;\">true<\/span><span style=\"color: #137107;\">)<\/span><\/strong> \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e\u00a0<strong><span style=\"color: #c3178b;\">var<\/span> <span style=\"color: #137107;\">isFaceUp<\/span><\/strong> \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<br \/>\n\u041a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u201c\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e\u201d \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 <strong><span style=\"color: #680da1;\">init<\/span><\/strong>, \u043d\u043e \u043e\u043d \u043d\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u041d\u0418\u041a\u0410\u041a\u0418\u0415 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong>vars<\/strong>. \u042d\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043a\u0440\u0443\u0433\u043b\u0430\u044f \u0441\u043a\u043e\u0431\u043a\u0430 \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043a\u0440\u0443\u0433\u043b\u0430\u044f \u0441\u043a\u043e\u0431\u043a\u0430, \u044d\u0442\u043e \u201c\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439\u201d \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 <strong><span style=\"color: #c3178b;\">init<\/span><\/strong>. \u0412\u0441\u0435\u043c \u0432\u0430\u0448\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c <strong><span style=\"color: #c3178b;\">vars<\/span><\/strong> \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0442\u0430\u043a\u043e\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 <strong><span style=\"color: #c3178b;\">init<\/span> <\/strong>\u0432 \u043a\u043b\u0430\u0441\u0441\u0435 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>.<br \/>\n\u0414\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u043c\u044b \u043f\u043e\u0447\u0442\u0438 \u0412\u0421\u0415\u0413\u0414\u0410 \u043f\u0438\u0448\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b <strong><span style=\"color: #680da1;\">init<\/span><\/strong>, \u0442\u0430\u043a \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u201c\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e\u201d \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430<strong><span style=\"color: #680da1;\"> init<\/span><\/strong>.<br \/>\n\u0414\u043b\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0441\u043c\u0435\u0448\u0430\u043d\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f : \u0438\u043d\u043e\u0433\u0434\u0430 \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a, \u043a\u0430\u043a \u0441 <strong><span style=\"color: #137107;\">CardView<\/span> <\/strong>\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u201c\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e\u201d \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 <strong><span style=\"color: #c3178b;\">init<\/span><\/strong>, \u0441 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0432\u0441\u0435\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445\u00a0<strong><span style=\"color: #c3178b;\">vars<\/span><\/strong>, \u0430 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0438\u0448\u0435\u043c \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439<strong><span style=\"color: #c3178b;\"> init<\/span><\/strong>.<\/span><br \/>\n<span style=\"font-weight: 400;\">&#8212;&#8212;- 25 -\u0430\u044f \u043c\u0438\u043d\u0443\u0442\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 &#8212;&#8212;&#8212;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0418\u0417\u041c\u0415\u041d\u042f\u0415\u041c\u041e\u0421\u0422\u042c<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 VALUE \u0422\u0418\u041f\u0410\u041c\u0418 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043e\u043d\u0438 \u043f\u043e\u0432\u0441\u044e\u0434\u0443 \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0438 \u0438\u0445\u00a0 \u0418\u0417\u041c\u0415\u041d\u042f\u0415\u041c\u041e\u0421\u0422\u042c (<em>mutability \u0438\u043b\u0438 changeability<\/em>) \u0434\u043e\u043b\u0436\u043d\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u042f\u0412\u041d\u041e \u0434\u043b\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>.<br \/>\n\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0430\u0441\u0441\u0438\u0432 <span style=\"color: #680da1;\"><strong>Array<\/strong><\/span>, \u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u044d\u0442\u043e\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 <span style=\"color: #680da1;\"><strong>Array<\/strong><\/span> \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c, \u0442\u043e \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u042f\u0412\u041d\u041e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0438 \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c <span style=\"color: #c3178b;\">var<\/span>, \u0430 \u043d\u0435 <strong><span style=\"color: #c3178b;\">let<\/span><\/strong>. \u041f\u043e\u043c\u043d\u0438\u0442\u0435? \u042f \u0441\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u043e\u0431\u0430, \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0438 \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>, \u0438\u043c\u0435\u044e\u0442 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b<strong><span style=\"color: #c3178b;\"> let<\/span><\/strong>.<br \/>\n\u0415\u0441\u043b\u0438 \u0432\u0430\u0448\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0438 \u043e\u043d\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f\u00a0<strong><span style=\"color: #c3178b;\">let<\/span> <\/strong>\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u0442\u043e \u0432\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u0422\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u00a0<span style=\"color: #680da1;\">Array<\/span>, \u0442\u043e \u0432\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0432 \u043d\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c. \u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u0430\u0448\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 <span style=\"color: #c3178b;\"><strong>struct<\/strong><\/span> \u0438 \u043e\u043d\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <span style=\"color: #c3178b;\"><strong>var<\/strong><\/span> \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0435\u0451 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c.<br \/>\n\u0412 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u043a\u043b\u0430\u0441\u0441\u044b <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>, \u0412\u0421\u0415\u0413\u0414\u0410 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0418\u0417\u041c\u0415\u041d\u042f\u0415\u041c\u042b\u041c\u0418. \u041e\u043d\u0438 \u201c\u0436\u0438\u0432\u0443\u0442\u201d \u0432 \u201c\u043a\u0443\u0447\u0435\u201d (<em>heap<\/em>), \u0438 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 (<em>pointers<\/em>) \u043d\u0430 \u044d\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 (<em>pointers<\/em>) \u0432\u044b \u0412\u0421\u0415\u0413\u0414\u0410 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u00a0 \u0432 \u201c\u043a\u0443\u0447\u0435\u201d (<em>heap<\/em>).<br \/>\n\u041d\u0415\u0422 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043d\u0430\u0434 \u0418\u0417\u041c\u0415\u041d\u042f\u0415\u041c\u041e\u0421\u0422\u042c\u042e \u0432 \u043a\u043b\u0430\u0441\u0441\u0430\u0445<strong><span style=\"color: #c3178b;\"> class<\/span><\/strong>, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. \u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u043a\u043e\u0434, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043b\u0430\u0441\u0441\u044b<strong><span style=\"color: #c3178b;\"> class<\/span><\/strong>, \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e \u0434\u0443\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435.<br \/>\n\u0415\u0441\u043b\u0438 \u0443 \u043a\u043e\u0433\u043e-\u0442\u043e \u0435\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (pointer) \u043d\u0430 \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>, \u0442\u043e \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0439\u0442\u0438 \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044e \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0433\u043e. \u042d\u0442\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u201c\u0414\u0438\u043a\u0438\u0439 \u0417\u0430\u043f\u0430\u0434\u201d, \u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0440\u0443\u0434\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u0436\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<br \/>\n\u0418\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u042f\u0412\u041d\u041e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0418\u0417\u041c\u0415\u041d\u042f\u0415\u041c\u041e\u0421\u0422\u042c &#8212; \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432 <strong>\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438<\/strong> \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u0445 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u0420\u0415\u0414\u041f\u041e\u0427\u0422\u0418\u0422\u0415\u041b\u042c\u041d\u0410\u042f \u0421\u0422\u0420\u0423\u041a\u0422\u0423\u0420\u0410 \u0414\u0410\u041d\u041d\u042b\u0425.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> &#8212; \u044d\u0442\u043e \u0432\u0430\u0448\u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0432\u044b \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u0431\u0443\u0434\u0435\u0442 \u0434\u0438\u043a\u0442\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a\u0438\u043c\u0438-\u0442\u043e \u043e\u0441\u043e\u0431\u044b\u043c\u0438 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u043c\u0438, \u0438 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u043e\u0434\u043d\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 \u043e\u0441\u043e\u0431\u044b\u0445 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432 \u0441\u0435\u0433\u043e\u0434\u043d\u044f, \u0438\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong>ViewModel<\/strong>. <strong>ViewModel<\/strong> &#8212; \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b <strong>MVVM<\/strong> \u0438 \u044d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0412\u0421\u0415\u0413\u0414\u0410 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u043c <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0418\u0421\u041f\u041e\u041b\u042c\u0417\u041e\u0412\u0410\u041d\u0418\u0415.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0421\u0442\u0430\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 <strong>iOS<\/strong> \u0431\u044b\u043b \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>, \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0430 <strong>\u041d\u0415<\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<br \/>\n\u041d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 <strong>ViewModel<\/strong> \u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 <strong>MVVM<\/strong> \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u043e\u043c <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>?<br \/>\n\u041c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u0447\u0438\u043c, \u044f \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u043e\u0431 \u044d\u0442\u043e\u043c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u043d\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e <strong>ViewModel<\/strong> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u201c\u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439\u201d (<i>share<\/i>) \u0441\u043e \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 <strong>Views<\/strong>.<br \/>\n<strong>ViewModel<\/strong> &#8212; \u044d\u0442\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 \u201c\u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u0445\u043e\u0434\u201d, \u043f\u043e\u0440\u0442\u0430\u043b, \u0432 <strong>Model<\/strong>.<br \/>\n\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 <strong>Views<\/strong> \u0445\u043e\u0442\u0435\u043b\u0438 \u0431\u044b \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430<strong> Model<\/strong> \u0438 \u043e\u043d\u0438 \u0432\u0441\u0435 \u0445\u043e\u0442\u044f\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0440\u0442\u0430\u043b\u0443. \u041a\u043b\u0430\u0441\u0441\u044b <strong><span style=\"color: #c3178b;\">class<\/span><\/strong> \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0449\u044c\u044e, \u0434\u0430\u044e\u0449\u0435\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u201c\u0434\u0435\u043b\u0438\u0442\u0441\u044f\u201d (<i>sharing<\/i>) \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u0432\u0441\u0435\u0445 \u044d\u0442\u0438\u0445 <strong>Views<\/strong> \u0435\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u043d\u0438\u0445.<br \/>\n\u0415\u0441\u0442\u044c \u043e\u043f\u0430\u0441\u043d\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u044d\u0442\u043e\u0433\u043e \u201c\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u201d \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 <strong>Views<\/strong>, \u043d\u043e \u043c\u044b \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0441\u043c\u044f\u0433\u0447\u0438\u0442\u044c \u0435\u0451 \u0432 <strong>MVVM,<\/strong> \u0438 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u0432\u0430\u043c \u044d\u0442\u043e \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435. \u041d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <strong>ViewModel<\/strong> &#8212; \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>. \u0412\u0441\u0451, \u0447\u0442\u043e \u0432\u044b \u0432\u0438\u0434\u0435\u043b\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440, &#8212; \u044d\u0442\u043e \u0431\u044b\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>. \u0412\u0441\u0435 \u044d\u0442\u0438 <span style=\"color: #680da1;\"><strong>Views<\/strong> <\/span>(<strong><span style=\"color: #680da1;\">ContentView<\/span><\/strong>, <strong><span style=\"color: #680da1;\">CardView)<\/span><\/strong> \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong>. \u042f \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0432\u0430\u043c, \u0447\u0442\u043e \u0432\u0441\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u044b<strong><span style=\"color: #680da1;\"> Array<\/span><\/strong>, \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 <strong><span style=\"color: #680da1;\">Int<\/span><\/strong>, \u0431\u0443\u043b\u0435\u0432\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <strong><span style=\"color: #680da1;\">Bool<\/span><\/strong>, \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0441 \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e <strong><span style=\"color: #680da1;\">Doubles<\/span><\/strong>, \u0432\u0441\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b <span style=\"color: #680da1;\">Range<\/span>\u00a0\u0438 \u0442.\u0434. \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438 <strong><span style=\"color: #680da1;\">struct<\/span><\/strong>.<br \/>\n\u0417\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0422\u0418\u041f\u0410 <em><span style=\"color: #680da1;\">View<\/span><\/em>, \u043e\u043d \u0438\u043c\u0435\u0435\u0442 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0434\u0440\u0443\u0433\u043e\u0439 \u0422\u0418\u041f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b <strong><span style=\"color: #c3178b;\">protocol<\/span><\/strong>.<br \/>\n<strong><span style=\"color: #680da1;\">View<\/span><\/strong> &#8212; \u044d\u0442\u043e \u041d\u0415 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span><\/strong> \u0438 \u041d\u0415 \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #c3178b;\">class<\/span><\/strong>, \u044d\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b <strong><span style=\"color: #c3178b;\">protocol<\/span><\/strong>, \u0438 \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\u0445 <strong><span style=\"color: #c3178b;\">protocol<\/span><\/strong> \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043d\u0435\u0434\u0435\u043b\u0435.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0432\u0435\u0449\u044c, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c, \u044d\u0442\u043e <strong>Generics<\/strong>.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-19.49.51.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12918 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-19.49.51.png\" alt=\"\" width=\"1530\" height=\"424\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-19.49.51.png 1530w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-19.49.51-300x83.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-19.49.51-768x213.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-19.49.51-1024x284.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-19.49.51-500x139.png 500w\" sizes=\"auto, (max-width: 1530px) 100vw, 1530px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.01.42.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12919 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.01.42.png\" alt=\"\" width=\"1526\" height=\"670\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.01.42.png 1526w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.01.42-300x132.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.01.42-768x337.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.01.42-1024x450.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.01.42-500x220.png 500w\" sizes=\"auto, (max-width: 1526px) 100vw, 1526px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u041c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0440\u044f\u0434 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0434\u043b\u044f \u0447\u0435\u0433\u043e, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u0430\u0441\u0441\u0438\u0432 \u0438 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d, \u043d\u043e \u0435\u043c\u0443 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e, \u043a\u0430\u043a\u043e\u0433\u043e \u0422\u0418\u041f\u0430 \u044d\u0442\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0434\u0430, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432<strong><span style=\"color: #680da1;\"> Array<\/span><\/strong>, \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u044d\u0442\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 vars \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0434\u0430. \u042d\u0442\u0438 <strong><span style=\"color: #c3178b;\">vars<\/span> <\/strong>\u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0432\u043d\u0443\u0442\u0440\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u0434\u0430.<br \/>\n\u041a\u0430\u043a \u043d\u0430\u043c \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0443, \u043a\u043e\u0433\u0434\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0443 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043d\u043e \u043e\u043d \u043d\u0435 \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0438\u0442\u044c\u0441\u044f \u043e \u0442\u043e\u043c, \u0431\u0443\u0434\u0435\u0442 \u043b\u0438 \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b <strong><span style=\"color: #680da1;\">Int<\/span><\/strong>, \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0441\u0442\u0440\u043e\u043a <strong><span style=\"color: #680da1;\">String<\/span><\/strong>, \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432<strong><span style=\"color: #680da1;\"> Array<\/span><\/strong> \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong>, \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432<strong><span style=\"color: #680da1;\"> Array<\/span> <\/strong>\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432 <strong><span style=\"color: #680da1;\">Set<\/span><\/strong>. \u041c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u044d\u0442\u043e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0435 \u0432\u043e\u043b\u043d\u0443\u0435\u0442.<br \/>\n\u0423 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435\u00a0<strong><span style=\"color: #c3178b;\">vars<\/span><\/strong>. \u041e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong>. \u041a\u0430\u043a \u043d\u0430\u043c \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0422\u0418\u041f\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0422\u0418\u041f\u044b \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0439?<br \/>\n\u041e\u0422\u0412\u0415\u0422 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>GENERICS<\/strong>.<br \/>\n\u0414\u0440\u0443\u0433\u0438\u0435 \u044f\u0437\u044b\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <strong>Java<\/strong> \u0442\u0430\u043a\u0436\u0435 \u0438\u043c\u0435\u044e\u0442 <strong>GENERICS<\/strong>.<br \/>\n<span style=\"font-weight: 400; color: #3366ff;\">&#8212;&#8212;- 30-\u0430\u044f \u043c\u0438\u043d\u0443\u0442\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 &#8212;&#8212;&#8212;<\/span><br \/>\n<span style=\"font-weight: 400;\">\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u0437 \u0432\u0430\u0441 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e, \u043d\u043e \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043d\u0435\u0434\u0435\u043b\u0438 \u043c\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u201c\u043f\u043e\u0434\u043d\u044f\u0442\u044c\u201d <strong>GENERICS<\/strong> \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0432 \u0438\u0445 \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0434\u0440\u0443\u0433\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u0422\u0418\u041f\u043e\u0432 \u0432 <strong>Swift.<\/strong><br \/>\n\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 <strong>GENERICS<\/strong> \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c <strong><span style=\"color: #680da1;\">Array<\/span><\/strong>.<\/span><\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12920 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.04.png\" alt=\"\" width=\"1528\" height=\"836\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.04.png 1528w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.04-300x164.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.04-768x420.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.04-1024x560.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.04-500x274.png 500w\" sizes=\"auto, (max-width: 1528px) 100vw, 1528px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.57.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12921 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.57.png\" alt=\"\" width=\"1444\" height=\"1070\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.57.png 1444w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.57-300x222.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.57-768x569.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.57-1024x759.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-20.27.57-405x300.png 405w\" sizes=\"auto, (max-width: 1444px) 100vw, 1444px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u041c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. \u042d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <strong><span style=\"color: #c3178b;\">struct<\/span> <\/strong>\u0441 \u0438\u043c\u0435\u043d\u0435\u043c <strong><span style=\"color: #680da1;\">Array<\/span><\/strong>, \u0432 \u0443\u0433\u043b\u043e\u0432\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 \u0443\u043a\u0430\u0437\u0430\u043d <strong><span style=\"color: #680da1;\">&lt;<span style=\"color: #c3178b;\">Element<\/span>&gt;<\/span><\/strong>, \u0430 \u0437\u0430\u0442\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong><span style=\"color: #c3178b;\">fun\u0441<\/span> <span style=\"color: #137107;\">append<\/span><\/strong>, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0438\u043c\u0435\u0435\u0442 \u0422\u0418\u041f <strong><span style=\"color: #c3178b;\">Element<\/span><\/strong>.<br \/>\n\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435\u00a0 \u0422\u0418\u041f <strong><span style=\"color: #c3178b;\">Element<\/span><\/strong>?<br \/>\n\u042d\u0442\u043e \u0442\u043e, \u043e \u0447\u0435\u043c \u044f \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u043a\u0430\u043a \u043e <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d<\/span><\/strong> \u0422\u0418\u041f.<br \/>\n<strong><span style=\"color: #c3178b;\">Element<\/span><\/strong> &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0422\u0418\u041f, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0434\u0430\u0435\u0442 \u0438\u043c\u044f, \u0438 \u044d\u0442\u043e <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435 \u0412\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d<\/span> <\/strong>\u0422\u0418\u041f.<br \/>\n\u041c\u0430\u0441\u0441\u0438\u0432\u0443 <span style=\"color: #680da1;\"><strong>Array<\/strong><\/span> \u0442\u043e\u0436\u0435 \u043d\u0435 \u0432\u0430\u0436\u043d\u043e, \u043a\u0430\u043a\u043e\u0439 \u0443 <strong><span style=\"color: #c3178b;\">Element<\/span><\/strong> \u0422\u0418\u041f. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b <strong><span style=\"color: #680da1;\">Int<\/span><\/strong>, \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0441\u0442\u0440\u043e\u043a <strong><span style=\"color: #680da1;\">String<\/span><\/strong>, \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0447\u0435\u0433\u043e \u0443\u0433\u043e\u0434\u043d\u043e.<br \/>\n\u041f\u043e \u0441\u0443\u0442\u0438 \u0437\u0434\u0435\u0441\u044c \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0422\u0418\u041f \u0432 <strong>Swift<\/strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u044f \u0434\u0430\u043b \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d<\/span><\/strong> \u0422\u0418\u041f.<br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 <strong><span style=\"color: #137107;\">append<\/span><\/strong>, \u043e\u043d \u0442\u0430\u043a\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u0434\u0435\u043b\u043e \u0441 <strong><span style=\"color: #c3178b;\">Element<\/span><\/strong>, \u0422\u0418\u041f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435 \u0412\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d<\/span><\/strong>. \u041c\u0435\u0442\u043e\u0434 <strong><span style=\"color: #137107;\">append<\/span><\/strong> \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c <strong><span style=\"color: #c3178b;\">Element<\/span><\/strong> \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 <strong><span style=\"color: #c3178b;\">vars<\/span><\/strong>. \u041e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 <strong><span style=\"color: #c3178b;\">Element<\/span><\/strong>. \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u043e \u0441\u0443\u0442\u0438\u00a0<strong><span style=\"color: #c3178b;\">Element<\/span><\/strong> &#8212; \u044d\u0442\u043e \u201c\u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435\u043b\u044c\u201d (<i>placeholder<\/i>) \u0422\u0418\u041f\u0410.<br \/>\n\u041a\u043e\u0433\u0434\u0430 \u0436\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0422\u0418\u041f\u0410 \u0432\u043c\u0435\u0441\u0442\u043e\u00a0 \u201c\u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435\u043b\u044f\u201d (<i>placeholder<\/i>)?<br \/>\n\u042d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430 \u043b\u044e\u0434\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0432 \u043a\u043e\u0434\u0435.<br \/>\n\u0415\u0441\u043b\u0438 \u044f \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u044e \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong>,\u00a0\u0442\u043e \u044f \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong><span style=\"color: #c3178b;\">var<\/span> <span style=\"color: #137107;\">a<\/span><\/strong> <strong>=<span style=\"color: #680da1;\"> Array &lt;Int&gt;<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u043e \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0420\u0415\u0410\u041b\u042c\u041d\u042b\u0419 \u0422\u0418\u041f \u0432 \u0443\u0433\u043b\u043e\u0432\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445. \u042d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b <strong><span style=\"color: #680da1;\">Int<\/span><\/strong>.<br \/>\n\u0417\u0430\u0442\u0435\u043c \u0432\u043e \u0432\u0441\u0435\u043c \u043a\u043e\u0434\u0435 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 \u201csearch and replace\u201d (\u201c\u0438\u0449\u0435\u043c \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c), \u0442\u043e \u0435\u0441\u0442\u044c <strong><span style=\"color: #c3178b;\">Element<\/span><\/strong> \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 <strong><span style=\"color: #680da1;\">Int<\/span><\/strong>.<br \/>\n\u0422\u0430\u043a \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f append \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <strong><span style=\"color: #680da1;\">Int<\/span><\/strong> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.<br \/>\n\u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043c\u043e\u0433\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <strong><span style=\"color: #137107;\">a.append(<span style=\"color: #0000ff;\">5<\/span>)<\/span><\/strong>, \u0438 \u044d\u0442\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u0430\u043a \u043a\u0430\u043a <span style=\"color: #0000ff;\">5<\/span> &#8212; \u044d\u0442\u043e \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e\u00a0<strong><span style=\"color: #680da1;\">Int<\/span><\/strong>, \u0430 <strong><span style=\"color: #137107;\">append<\/span><\/strong> \u0431\u0435\u0440\u0435\u0442 <strong><span style=\"color: #680da1;\">Int<\/span><\/strong> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430.<br \/>\n\u0418\u0442\u0430\u043a, \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c \u0422\u0418\u041f\u043e\u043c \u0432\u043c\u0435\u0441\u0442\u043e <strong><span style=\"color: #c3178b;\">Element<\/span><\/strong> \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043a\u043e\u0434\u0430.<br \/>\n\u0417\u0430\u043c\u0435\u0442\u044c\u0442\u0435, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b (\u043a\u0430\u043a <strong><span style=\"color: #680da1;\">Array<\/span><\/strong>) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435 \u0412\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d<\/span><\/strong> \u0422\u0418\u041f, \u0442\u043e \u0432\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u041c\u0438\u0440\u0443 \u043e\u0431 \u044d\u0442\u043e\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 <strong><span style=\"color: #680da1;\">Array<\/span><\/strong> \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435 \u0412\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d<\/span><\/strong> \u0422\u0418\u041f\u00a0 <strong><span style=\"color: #c3178b;\">Element<\/span><\/strong> \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0422\u0418\u041f.<br \/>\n\u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u043e\u0441\u043b\u0435 \u0438\u043c\u0435\u043d\u0438\u00a0 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0433\u043b\u043e\u0432\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a \u0432\u043e\u043a\u0440\u0443\u0433 <strong><span style=\"color: #c3178b;\">Element<\/span><\/strong> :<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.06.39.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12922 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.06.39.png\" alt=\"\" width=\"1532\" height=\"644\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.06.39.png 1532w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.06.39-300x126.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.06.39-768x323.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.06.39-1024x430.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.06.39-500x210.png 500w\" sizes=\"auto, (max-width: 1532px) 100vw, 1532px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.08.02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12923 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.08.02.png\" alt=\"\" width=\"1504\" height=\"1020\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.08.02.png 1504w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.08.02-300x203.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.08.02-768x521.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.08.02-1024x694.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.08.02-442x300.png 442w\" sizes=\"auto, (max-width: 1504px) 100vw, 1504px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0421\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435\u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d<\/span><\/strong> \u0422\u0418\u041f\u043e\u0432:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0<strong><span style=\"color: #c3178b;\">struct<\/span> <span style=\"color: #680da1;\">Array<\/span> <span style=\"color: #680da1;\">&lt;<span style=\"color: #c3178b;\">Element<\/span>, <span style=\"color: #c3178b;\">Foo<\/span>&gt;<\/span><\/strong> <strong><span style=\"color: #137107;\">{ .\u00a0 .\u00a0 .\u00a0 .}<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0423 \u0432\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0433\u043e\u0434\u043d\u043e <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435\u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d<\/span><\/strong> \u0422\u0418\u041f\u043e\u0432, \u0430 \u0437\u0430\u0442\u0435\u043c \u0442\u043e\u0442, \u043a\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u044d\u0442\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u0434\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0422\u0418\u041f\u044b, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u044d\u0442\u0438\u043c <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435\u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d<\/span><\/strong> \u0422\u0418\u041f\u0430\u043c.<br \/>\n\u042f \u043d\u0430\u0437\u0432\u0430\u043b \u044d\u0442\u0438 <strong>Swift<\/strong> \u0422\u0418\u041f\u044b <strong><span style=\"color: #680da1;\">\u201c\u041d\u0435\u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d<\/span><\/strong> \u0422\u0418\u041f\u0430\u043c\u0438.<br \/>\n\u041d\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u0449\u0435\u043f\u0440\u0438\u043d\u044f\u0442\u043e\u0435 \u0438\u043c\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u0422\u0418\u041f\u0430 &#8212; \u044d\u0442\u043e \u041f\u0410\u0420\u0410\u041c\u0415\u0422\u0420 \u0422\u0418\u041f\u0410 (<i>type parameter):<\/i><\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12924 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.02.png\" alt=\"\" width=\"1536\" height=\"528\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.02.png 1536w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.02-300x103.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.02-768x264.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.02-1024x352.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.02-500x172.png 500w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.59.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12925 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.59.png\" alt=\"\" width=\"1518\" height=\"606\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.59.png 1518w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.59-300x120.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.59-768x307.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.59-1024x409.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-02-at-21.15.59-500x200.png 500w\" sizes=\"auto, (max-width: 1518px) 100vw, 1518px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 <strong>Swift<\/strong> \u0422\u0418\u041f, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0441\u0435\u0433\u043e\u0434\u043d\u044f, \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438:\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.54.39.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12926 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.54.39.png\" alt=\"\" width=\"1536\" height=\"754\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.54.39.png 1536w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.54.39-300x147.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.54.39-768x377.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.54.39-1024x503.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.54.39-500x245.png 500w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.55.50.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12927 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.55.50.png\" alt=\"\" width=\"1486\" height=\"1134\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.55.50.png 1486w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.55.50-300x229.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.55.50-768x586.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.55.50-1024x781.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-10.55.50-393x300.png 393w\" sizes=\"auto, (max-width: 1486px) 100vw, 1486px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0424\u0443\u043d\u043a\u0446\u0438\u0438 &#8212; \u0442\u043e\u0436\u0435 \u043b\u044e\u0434\u0438!<br \/>\n\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u0430\u043a \u0422\u0418\u041f\u042b \u043f\u043e\u0432\u0441\u044e\u0434\u0443, \u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439. \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0422\u0418\u041f\u0410 \u0424\u0423\u041d\u041a\u0426\u0418\u0418 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 &#8212; \u043f\u0440\u0438 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u041d\u0415\u0422 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0438\u043c\u0435\u043d \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0442\u043e\u043b\u044c\u043a\u043e \u0422\u0418\u041f\u042b \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0432 \u044d\u0442\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438.<br \/>\n\u041d\u0430 \u0441\u043b\u0430\u0439\u0434\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0422\u0418\u041f\u043e\u0432. \u0422\u041e, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u0436\u0435\u043b\u0442\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c \u0438 \u0435\u0441\u0442\u044c \u0422\u0418\u041f. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u044c, \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u0436\u0435\u043b\u0442\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c, &#8212; \u044d\u0442\u043e <strong><span style=\"color: #680da1;\">Int<\/span><\/strong> \u0438\u043b\u0438<strong><span style=\"color: #680da1;\"> String<\/span><\/strong> \u0438\u043b\u0438 <strong><span style=\"color: #680da1;\">Array&lt; Int&gt;<\/span><\/strong>.<br \/>\n\u041d\u0430 \u0441\u043b\u0430\u0439\u0434\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0442\u0430\u043a\u0438\u0435 \u0422\u0418\u041f\u042b, \u043a\u0430\u043a \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435.<br \/>\n\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0422\u0418\u041f <strong><span style=\"color: #680da1;\">(Int, Int) -&gt; Bool<\/span> <\/strong>\u0438 \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u0432\u0430 <strong><span style=\"color: #680da1;\">Ints<\/span><\/strong> \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <strong><span style=\"color: #680da1;\">Bool<\/span><\/strong>.<br \/>\n\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439\u00a0 \u0422\u0418\u041f <strong><span style=\"color: #680da1;\">(Double) -&gt; Void<\/span><\/strong> \u0438 \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong> \u0438 \u041d\u0418\u0427\u0415\u0413\u041e \u041d\u0415 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442.<br \/>\n\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0438\u043c\u0435\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0422\u0418\u041f <strong><span style=\"color: #680da1;\">() -&gt; Array&lt;String&gt;<\/span><\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f<strong><span style=\"color: #680da1;\"> Array<\/span><\/strong> \u0441\u0442\u0440\u043e\u043a <strong><span style=\"color: #680da1;\">String<\/span><\/strong>.<br \/>\n\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439\u00a0 \u0422\u0418\u041f <\/span><strong><span style=\"color: #680da1;\">\u00a0(Double) -&gt; Void <\/span><\/strong><span style=\"font-weight: 400;\">\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u041d\u0415\u0422 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u043e\u043d\u0430 \u041d\u0418\u0427\u0415\u0413\u041e \u041d\u0415 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442.<br \/>\n\u0412\u0441\u0451 \u044d\u0442\u043e \u0422\u0418\u041f\u042b, \u0432 \u043d\u0438\u0445 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0433\u043e.<br \/>\n\u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u044f \u043c\u043e\u0433\u0443 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <span style=\"color: #c3178b;\"><b>var <\/b><\/span>\u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 \u0422\u0418\u041f\u043e\u0432.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong><span style=\"color: #c3178b;\">var<\/span> <span style=\"color: #137107;\">foo<\/span><\/strong>: <strong><span style=\"color: #137107;\">(Double) -&gt; Void\u00a0<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0418\u041f <strong><span style=\"color: #137107;\">foo<\/span><\/strong> &#8212; \u044d\u0442\u043e \u201d\u0424\u0423\u041d\u041a\u0426\u0418\u042f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong> \u0438 \u041d\u0418\u0427\u0415\u0413\u041e \u041d\u0415 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u201d<br \/>\n\u0423 \u043c\u0435\u043d\u044f \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c <strong><span style=\"color: #137107;\">what<\/span><\/strong>, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0422\u0418\u041f &#8212; \u044d\u0442\u043e \u0424\u0423\u041d\u041a\u0426\u0418\u042f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u0431\u0435\u0440\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <strong><span style=\"color: #680da1;\">Bool<\/span><\/strong>, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044f, \u0447\u0442\u043e \u0432 \u0442\u0435\u043b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438\u00a0<\/span><span style=\"font-weight: 400;\"><strong><span style=\"color: #137107;\">what<\/span><\/strong> \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f .<br \/>\n\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043a\u0430\u043a \u0422\u0418\u041f\u044b:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.14.45.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12929 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.14.45.png\" alt=\"\" width=\"1530\" height=\"816\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.14.45.png 1530w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.14.45-300x160.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.14.45-768x410.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.14.45-1024x546.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.14.45-500x267.png 500w\" sizes=\"auto, (max-width: 1530px) 100vw, 1530px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.19.31.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12930 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.19.31.png\" alt=\"\" width=\"1508\" height=\"1200\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.19.31.png 1508w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.19.31-300x239.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.19.31-768x611.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.19.31-1024x815.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-12.19.31-377x300.png 377w\" sizes=\"auto, (max-width: 1508px) 100vw, 1508px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <strong><span style=\"color: #c3178b;\">var<\/span><\/strong> \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <strong><span style=\"color: #137107;\">operation<\/span><\/strong>. \u042d\u0442\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0438\u043c\u0435\u0435\u0442 \u0422\u0418\u041f \u201c\u0424\u0423\u041d\u041a\u0426\u0418\u0418, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong> \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong>.<br \/>\n\u042f \u0441\u043e\u0437\u0434\u0430\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong> \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong>.<br \/>\n\u042d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong><span style=\"color: #137107;\">square<\/span><\/strong>, \u043e\u043d\u0430 \u0432\u043e\u0437\u0432\u043e\u0434\u0438\u0442 \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong> \u0447\u0438\u0441\u043b\u043e:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong><span style=\"color: #c3178b;\">func<\/span> <span style=\"color: #137107;\">square<\/span><\/strong> <strong>(<span style=\"color: #137107;\">operand:<\/span> <span style=\"color: #680da1;\">Double<\/span>)<\/strong> <strong>-&gt;<\/strong> <strong><span style=\"color: #680da1;\">Double<\/span><\/strong> <span style=\"color: #000000;\"><strong>{<\/strong><\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0<strong><span style=\"color: #c3178b;\">return<\/span> <span style=\"color: #137107;\">operand<\/span><\/strong> <strong>* <span style=\"color: #137107;\">operand<\/span><\/strong><br \/>\n<strong>}<\/strong><\/span><\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0422\u0435\u043f\u0435\u0440\u044c \u044f \u043c\u043e\u0433\u0443 \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong><span style=\"color: #c3178b;\">var<\/span><\/strong> \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <strong><span style=\"color: #137107;\">operation<\/span><\/strong> \u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/span><\/p>\n<p><strong><span style=\"color: #0000ff;\">operation <\/span>=<\/strong> <strong><span style=\"color: #137107;\">square<\/span><\/strong><\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <span style=\"color: #0000ff;\"><strong> operation<\/strong><\/span> \u0438\u043c\u0435\u0435\u0442 \u0422\u0418\u041f \u201c\u0424\u0423\u041d\u041a\u0426\u0418\u0418, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong> \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong> \u0438\u00a0<strong><span style=\"color: #137107;\">square <\/span><\/strong> &#8212; \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong> \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong>.<br \/>\n\u0422\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u0438\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u043d\u0430\u044f.<br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c <strong><span style=\"color: #0000ff;\">operation<\/span><\/strong>, \u044f \u043c\u043e\u0433\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e :<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong><span style=\"color: #c3178b;\">let<\/span> <span style=\"color: #137107;\">result1<\/span><\/strong> <strong>= <span style=\"color: #0000ff;\">operation( <span style=\"color: #137107;\">4<\/span> )<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong><span style=\"color: #137107;\">result1<\/span><\/strong> \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong><span style=\"color: #0000ff;\">16<\/span><\/strong>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong><span style=\"color: #c3178b;\">func<\/span> <span style=\"color: #137107;\">square<\/span><\/strong>.<br \/>\n\u0417\u0430\u043c\u0435\u0442\u044c\u0442\u0435, \u0447\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u0432\u044b\u0437\u044b\u0432\u0430\u043b <strong><span style=\"color: #0000ff;\">operation<\/span><\/strong>, \u044f \u041d\u0415 \u043d\u0430\u043f\u0438\u0441\u0430\u043b <strong><span style=\"color: #0000ff;\">operation (<span style=\"color: #000000;\">operand<\/span>: <span style=\"color: #137107;\">4<\/span>)<\/span><\/strong>, \u043c\u044b \u201c\u0441\u0431\u0440\u043e\u0441\u0438\u043b\u0438\u201d \u043c\u0435\u0442\u043a\u0443 <strong><span style=\"color: #000000;\">operand:<\/span><\/strong>. \u042d\u0442\u043e \u0412\u0421\u0415\u0413\u0414\u0410 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0447\u0442\u043e-\u0442\u043e, \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u0442 \u0422\u0418\u041f \u0424\u0423\u041d\u041a\u0426\u0418\u0418. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e\u0442 \u0422\u0418\u041f \u0424\u0423\u041d\u041a\u0426\u0418\u0418 \u0442\u0435\u0440\u044f\u0435\u0442 \u0441\u0432\u043e\u0438 \u043c\u0435\u0442\u043a\u0438.<\/span><br \/>\n<span style=\"font-weight: 400; color: #3366ff;\">&#8212;&#8212;- 35-\u0430\u044f \u043c\u0438\u043d\u0443\u0442\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 &#8212;&#8212;&#8212;<\/span><br \/>\n<span style=\"font-weight: 400;\">\u041d\u043e \u044f \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0433\u0443 \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u043c\u043e\u0435\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 operation \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong><span style=\"color: #137107;\">sqrt<\/span><\/strong>, \u0433\u0434\u0435 <strong><span style=\"color: #137107;\">sqrt<\/span><\/strong> &#8212; \u044d\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432 <strong>Swift<\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong> \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <strong><span style=\"color: #680da1;\">Double<\/span><\/strong>:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong><span style=\"color: #0000ff;\">operation<\/span><\/strong> <strong>= <span style=\"color: #137107;\">sqrt<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u00a0<strong><span style=\"color: #137107;\">sqrt<\/span><\/strong> \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0439 \u043a\u043e\u0440\u0435\u043d\u044c \u0447\u0438\u0441\u043b\u0430, \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f.<br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong><span style=\"color: #0000ff;\">operation<\/span><\/strong>, \u044f \u043c\u043e\u0433\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e :<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong><span style=\"color: #c3178b;\">let<\/span> <span style=\"color: #137107;\">result2<\/span><\/strong> <strong>=<span style=\"color: #0000ff;\"> operation( <span style=\"color: #137107;\">4<\/span> )\u00a0<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 <strong><span style=\"color: #137107;\">result2<\/span><\/strong> \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong><span style=\"color: #0000ff;\">2<\/span><\/strong>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong><span style=\"color: #0000ff;\">operation<\/span><\/strong> \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <strong><span style=\"color: #137107;\">sqrt<\/span><\/strong> \u0444\u0443\u043d\u043a\u0446\u0438\u044f.<br \/>\n\u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0421\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0430\u0432\u0434\u043e\u0439.<br \/>\n\u041d\u043e \u0447\u0442\u043e \u0435\u0441\u0442\u044c, \u0442\u043e \u0435\u0441\u0442\u044c.<br \/>\n\u0412 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043d\u0430\u0447\u043d\u0443 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434, \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430\u0448\u0443 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e.<br \/>\n\u042f \u0434\u0443\u043c\u0430\u044e, \u0432\u044b \u0441\u043b\u044b\u0448\u0430\u043b\u0438 \u0441\u043b\u043e\u0432\u043e \u201c\u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435\u201d (<i>closure<\/i>), \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f\u0445 (<i>closures<\/i>) \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043d\u0435\u0434\u0435\u043b\u0435 \u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0434\u0435\u043b\u044e.<br \/>\n\u0417\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435 (closure) &#8212; \u044d\u0442\u043e \u043f\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f (<i>inlining<\/i>) \u0432 \u043a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u044f. \u041e\u043d\u0430 \u0431\u0435\u0440\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 (<i>inline<\/i>) \u0435\u0451 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u043a\u043e\u0434, \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0433\u0434\u0435-\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0435\u0451 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c. \u041d\u043e \u0417\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435 (<i>closure<\/i>) &#8212; \u044d\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u201c\u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u0435\u201d (<i>inlining<\/i>) \u0432 \u043a\u043e\u0434, \u044d\u0442\u043e \u0435\u0449\u0435 \u0438 \u201c\u0437\u0430\u0445\u0432\u0430\u0442\u201d \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0432\u043d\u0435 \u0442\u0435\u043b\u0430 \u044d\u0442\u043e\u0439 \u201c\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439\u201d \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u043c \u043a\u043e\u0434\u0435 \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0435\u0451 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.05.12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12931 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.05.12.png\" alt=\"\" width=\"1540\" height=\"482\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.05.12.png 1540w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.05.12-300x94.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.05.12-768x240.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.05.12-1024x320.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.05.12-500x156.png 500w\" sizes=\"auto, (max-width: 1540px) 100vw, 1540px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.06.08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12932 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.06.08.png\" alt=\"\" width=\"1530\" height=\"640\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.06.08.png 1530w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.06.08-300x125.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.06.08-768x321.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.06.08-1024x428.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.06.08-500x209.png 500w\" sizes=\"auto, (max-width: 1530px) 100vw, 1530px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u0412\u043e\u0442 \u043e \u0447\u0435\u043c \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043d\u0435\u0434\u0435\u043b\u0435, \u043d\u043e \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u0432\u0430\u043c, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u201c\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439\u201d (<i>inlining<\/i>) \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0441\u0435\u0433\u043e\u0434\u043d\u044f.<br \/>\n\u041d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044d\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u043b\u0430\u0439\u0434.<br \/>\n\u042d\u0442\u043e \u0442\u043e, \u043e \u0447\u0435\u043c \u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12885 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05.png\" alt=\"\" width=\"2290\" height=\"1000\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05.png 2290w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05-300x131.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05-768x335.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05-1024x447.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-01-at-08.27.05-500x218.png 500w\" sizes=\"auto, (max-width: 2290px) 100vw, 2290px\" \/><\/a><\/p>\n<table style=\"background-color: #bbeef0;\">\n<tbody>\n<tr>\n<td>\n<h2 style=\"text-align: center;\"><b>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/b><\/h2>\n<ul>\n<li><strong><span style=\"color: #0000ff;\">MVVM<\/span><\/strong>\n<ul>\n<li><span style=\"font-weight: 400;\">\u041f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/span><\/li>\n<\/ul>\n<\/li>\n<li><strong><span style=\"color: #0000ff;\"><b>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0422\u0418\u041f\u043e\u0432<\/b><\/span><\/strong>\n<ul>\n<li><span style=\"font-weight: 400;\"><code><strong>struct<\/strong><\/code> &#8212; \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><code><strong>class<\/strong><\/code> &#8212; \u043a\u043b\u0430\u0441\u0441<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><strong>protocol<\/strong> &#8212; \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><code><strong>\u201cDon\u2019t Care\u201d<\/strong><\/code> \u0422\u0418\u041f (generic) &#8212; \u201c\u041d\u0435 \u0432\u0430\u0436\u043d\u043e \u043a\u0430\u043a\u043e\u0439\u201d \u0422\u0418\u041f<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><strong>enum<\/strong> &#8212; \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><code><strong>functions<\/strong><\/code> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">\u042f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0441\u044c \u043a \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u044e\u0441\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0451, \u043e \u0447\u0435\u043c \u043c\u044b \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u0438 \u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0432\u0430\u043c \u043d\u0430 \u0441\u043b\u0430\u0439\u0434\u0430\u0445:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.10.23.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12933 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.10.23.png\" alt=\"\" width=\"1526\" height=\"702\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.10.23.png 1526w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.10.23-300x138.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.10.23-768x353.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.10.23-1024x471.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.10.23-500x230.png 500w\" sizes=\"auto, (max-width: 1526px) 100vw, 1526px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.11.08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12934 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.11.08.png\" alt=\"\" width=\"1474\" height=\"674\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.11.08.png 1474w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.11.08-300x137.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.11.08-768x351.png 768w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.11.08-1024x468.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-03-at-13.11.08-500x229.png 500w\" sizes=\"auto, (max-width: 1474px) 100vw, 1474px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">\u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u043e\u0442 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0432\u0430\u0448\u0435\u043c \u043f\u0435\u0440\u0432\u043e\u043c \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u043c \u0417\u0430\u0434\u0430\u043d\u0438\u0438 \u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 <a href=\"https:\/\/piazza.com\/\"><strong>Piazza<\/strong><\/a>. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435.<br \/>\n\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u201c\u0432\u044b\u0432\u0435\u0434\u0435\u043c\u201d \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <strong>Memorize<\/strong> \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 MVVM \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u044c \u201c\u043c\u043e\u0437\u0433\u0438\u201d \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u0435. \u0422\u043e \u0435\u0441\u0442\u044c \u0434\u0430\u0434\u0438\u043c \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u041b\u043e\u0433\u0438\u043a\u0443 \u0438 \u0414\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u0440\u0442\u044b.<\/span><\/p>\n<p><span style=\"font-weight: 400; color: #3366ff;\">&#8212;&#8212;- 38-\u0430\u044f \u043c\u0438\u043d\u0443\u0442\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 &#8212;&#8212;&#8212;<\/span><\/p>\n<p><a title=\"\u041b\u0435\u043a\u0446\u0438\u044f 2 CS193P Spring 2020 \u2014 MVVM \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0422\u0418\u041f\u043e\u0432 \u0432 Swift. \u0427\u0430\u0441\u0442\u044c 2.\" href=\"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-2-cs193p-spring-2020-mvvm-i-sistema-tipov-v-swift-chast-2\/\"><strong>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442&#8230;<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043f\u043e\u043b\u043d\u044b\u0439 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0445\u0440\u043e\u043d\u043e\u043c\u0435\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u041b\u0435\u043a\u0446\u0438\u0438 2 \u0421\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u043a\u0443\u0440\u0441\u0430 CS193P Spring 2020 \u201c\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u00a0iOS\u00a0\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SwiftUI\u00a0\u201d. \u041f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c &#8212; 0 &#8212; 38 \u043c\u0438\u043d\u0443\u0442\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435, \u0412\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c &#8212; 38 &#8212; 104 \u043c\u0438\u043d\u0443\u0442\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c &hellip; <a href=\"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-2-cs193p-spring-2020-mvvm-i-sistema-tipov-v-swift-chast-1\/\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,9,63,14,62,54],"tags":[58,65,56,66,64],"class_list":["post-12881","post","type-post","status-publish","format-standard","hentry","category-ios-13","category-lecture","category-stanford-cs-193p-ios-13","category-swift","category-swift-5","category-swiftui","tag-ios-13","tag-swift-5-2","tag-swiftui","tag-xcode-11","tag-lektsii-ios-13"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/12881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/comments?post=12881"}],"version-history":[{"count":4,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/12881\/revisions"}],"predecessor-version":[{"id":13214,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/12881\/revisions\/13214"}],"wp:attachment":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/media?parent=12881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/categories?post=12881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/tags?post=12881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}