{"id":329871,"date":"2022-02-20T09:00:07","date_gmt":"2022-02-20T09:00:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=329871"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=329871","title":{"rendered":"<span>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 TabBarController \u0438 NavigationController \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u0432 UIKit<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0417\u0430\u0447\u0435\u043c UIKit \u0432 2022<\/h2>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 2022 \u0433\u043e\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 UIKit \u043d\u0430 \u0444\u043e\u043d\u0435 SwiftUI \u043d\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0441\u0442\u0430\u0440\u043e\u043c\u043e\u0434\u043d\u043e. \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u0449\u0435 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 UIKit \u0438 \u0443 \u043d\u0430\u0441 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0430 \u043d\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f, \u0442\u043e \u0435\u0433\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0435\u0449\u0435 \u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043e\u043b\u0438\u0434\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435.<\/p>\n<p>\u0410 \u0435\u0449\u0435 \u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u043c \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u043d\u0438\u0435, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043e\u0442 Storyboard \u043a \u0447\u0438\u0441\u0442\u043e\u043c\u0443 \u043a\u043e\u0434\u0443 \u0432 SwiftUI. \u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u0438 \u044d\u0442\u043e \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c, \u0435\u0449\u0435 \u043f\u043e\u043a\u0430, \u0443\u0447\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0438 \u043a\u043e\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0443\u0447\u0438\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0434\u0430.<\/p>\n<h2>\u0417\u0430\u0434\u0430\u0447\u0430<\/h2>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0437\u0430\u0434\u0430\u0447\u0435:<\/p>\n<ol>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c\u00a0<code>Navigation<\/code>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u00a0<code>Single View App<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u0435 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u00a0<code>Main.storyboard<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0432\u00a0<code>Info.plist<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0412\u00a0<code>SceneDelegate.swift<\/code>\u00a0\u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435\u00a0<code>UITabBarController<\/code>. \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432 \u043d\u0435\u0433\u043e \u0434\u0432\u0430\u00a0<code>UINavigationController<\/code>. \u041f\u0435\u0440\u0432\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043b\u0435\u043d\u0442\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u043f\u0440\u043e\u0444\u0438\u043b\u044c.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435\u00a0<code>Tab Bar Item<\/code>\u00a0\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u00a0<code>Assets.xcassets<\/code>\u00a0\u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c SF Symbols.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435\u00a0<code>FeedViewController<\/code>\u00a0\u0438\u00a0<code>ProfileViewController<\/code>\u00a0\u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0438\u0445 \u043a\u0430\u043a root view controller \u0443 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435\u00a0<code>PostViewController<\/code>\u00a0\u0434\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430. \u041f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0438 \u0446\u0432\u0435\u0442 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 view. \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430\u00a0<code>FeedViewController<\/code>\u00a0\u0438 \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043f\u043e\u0441\u0442\u0430. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0442\u0435\u043a\u0435\u00a0<code>UINavigationController<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443\u00a0<code>Post<\/code>\u00a0\u0441\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c\u00a0<code>title: String<\/code>. \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0438\u043f\u0430\u00a0<code>Post<\/code>\u00a0\u0432\u00a0<code>FeedViewController<\/code>\u00a0\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u0432\u00a0<code>PostViewController<\/code>. \u0412 \u043a\u043b\u0430\u0441\u0441\u0435\u00a0<code>PostViewController<\/code>\u00a0\u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435\u00a0<code>title<\/code>\u00a0\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u00a0<code>PostViewController<\/code>\u00a0\u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435\u00a0<code>Bar Button Item<\/code>\u00a0\u0432 \u043d\u0430\u0432\u0438\u0433\u0435\u0439\u0448\u043d \u0431\u0430\u0440. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u00a0<code>InfoViewController<\/code>. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u00a0<code>InfoViewController<\/code>\u00a0\u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043d\u0435\u0451 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f\u00a0<code>UIAlertController<\/code>\u00a0\u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u00a0<code>title<\/code>,\u00a0<code>message<\/code>\u00a0\u0438 \u0434\u0432\u0443\u043c\u044f\u00a0<code>UIAlertAction<\/code>. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430\u00a0<code>UIAlertAction<\/code>\u00a0\u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043f\u0443\u043d\u043a\u0442\u044b 1 \u0438 2. \u041d\u0435 \u0432 \u0441\u043c\u044b\u0441\u043b\u0435 \u0438\u0445 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443-\u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438 \u043f\u0435\u0441\u0442\u0440\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0417\u0430\u043c\u0435\u0447\u0443 \u0442\u043e\u043b\u044c\u043a\u043e, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432 SceneDelegate (\u0435\u0441\u043b\u0438 \u0432\u044b \u0435\u0449\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 Xcode \u0434\u043e 13 \u0432\u0435\u0440\u0441\u0438\u0438, \u0442\u043e AppDelegate), \u0441\u0442\u0440\u043e\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441 Main.storyboard.<\/p>\n<p><code>var window: UIWindow?<\/code><\/p>\n<h2>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u044b 3, 4, 5 \u0438 6. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c!<\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0443\u043d\u043a\u0442\u0430 2 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 2 \u0441\u043f\u043e\u0441\u043e\u0431\u0430: <\/p>\n<ol>\n<li>\n<p>\u0420\u0435\u043b\u0438\u0437\u0430\u0446\u0438\u044f <code>UITabBarController<\/code>  \u0432\u043d\u0443\u0442\u0440\u0438 <code>SceneDelegate.swift<\/code><\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e <code>UITabBarController.swift<\/code> \u0438 \u0432 \u043d\u0435\u0433\u043e \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430\u00a0<code>UINavigationController<\/code><\/p>\n<\/li>\n<\/ol>\n<h2>\u0420\u0435\u043b\u0438\u0437\u0430\u0446\u0438\u044f UITabBarController  \u0432\u043d\u0443\u0442\u0440\u0438 SceneDelegate.swift<\/h2>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 <code>SceneDelegate.swift<\/code> \u0438 \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0437\u0430\u043c\u0435\u043d\u0438\u043c ViewController \u043d\u0430 TabBarController<\/p>\n<p><code>window = UIWindow(frame: windowScene.coordinateSpace.bounds)<\/code><\/p>\n<p><code>window?.windowScene = windowScene<\/code><\/p>\n<p><code>window?.rootViewController = UITabBarController()<\/code><\/p>\n<p><code>window?.makeKeyAndVisible()<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 <code>ViewController.swift<\/code>. \u0410 \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u043f\u043e\u0439\u0434\u0435\u043c \u043e\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e. \u041d\u0430\u0448 TabBarController \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0438 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b TabBarController \u0447\u0442\u043e-\u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043b, \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c 2 <code>ViewController<\/code> (cmd\u2318 + N -> Cocoa Touch Class), \u0433\u0434\u0435 Class: \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 <code>FeedViewController<\/code>\u00a0\u0438\u00a0<code>ProfileViewController<\/code>, \u0430 Subclass of: <code>UIViewController<\/code> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0421 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0435 \u0438 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c, \u043c\u044b \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0438\u043c \u0444\u043e\u043d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442:<\/p>\n<p><code>override func viewDidLoad() {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 super.viewDidLoad()<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0444\u043e\u043d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 view.backgroundColor = .lightGray<\/code><\/p>\n<p><code>}<\/code><\/p>\n<blockquote>\n<p> \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: .systemBlue). Apple \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u043a \u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0438 \u0441\u0432\u0435\u0442\u043b\u043e\u043c\u0443 \u0440\u0435\u0436\u0438\u0436\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432.<\/p>\n<\/blockquote>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u0434\u0430\u0432\u0430\u0439 \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u043d\u0430\u0448\u0438\u043c <code>ViewController<\/code>   \u0440\u0430\u0437\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0432\u0430 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430r \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c<code>FeedViewController<\/code>\u00a0\u0438\u00a0<code>ProfileViewController<\/code>\u00a0\u0438 \u043a\u0430\u043a root view controller. \u0412 <code>SceneDelegate.swift<\/code> \u043f\u0435\u0440\u0435\u0434 <code>window = UIWindow(frame: windowScene.coordinateSpace.bounds<\/code>  \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b   <\/p>\n<p><code>let feedViewController = UINavigationController(rootViewController: FeedViewController()) <\/code><\/p>\n<p><code>let profileViewController = UINavigationController(rootViewController: profileViewController())<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0432\u043a\u043b\u0430\u0434\u043e\u043a \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. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043d\u0435\u043b\u044c \u0432\u043a\u043b\u0430\u0434\u043e\u043a: <\/p>\n<p><code>let tabBarController = UITabBarController()<\/code><\/p>\n<p>\u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0432 \u043d\u0435\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b:<\/p>\n<p><code>tabBarController.viewControllers = [feedViewController, profileViewController]<\/code><\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c <code>UITabBarController()<\/code>  \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439  <code>tabBarController<\/code>  \u0432<\/p>\n<p><code>window?.rootViewController = UITabBarController()<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442, \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u044d\u043a\u0440\u0430\u043d \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438 \u0435\u0441\u043b\u0438 \u043f\u043e\u0449\u0435\u043b\u043a\u0430\u0442\u044c \u0432\u043d\u0438\u0437\u0443 \u0441\u043f\u0440\u0430\u0432\u0430 \u0438 \u0441\u043b\u0435\u0432\u0430, \u0442\u043e \u0434\u0430\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u044d\u043a\u0440\u0430\u043d\u044b. \u0425\u043e\u0442\u044f \u043d\u0430\u0448 TabBar  \u0438 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e. \u042d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043d\u0430\u0448 TabBar, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u0438\u0433\u0440\u0443: \u041a\u0443\u0434\u0430 \u044f \u043d\u0430\u0436\u0438\u043c\u0430\u044e?<\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 TabBar<\/h2>\n<p>\u0414\u0430\u0432\u0430\u0439 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0430\u0448 \u043a\u043e\u0434 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c \u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0432\u0441\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432 \u043a\u0443\u0447\u0443, \u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u043b\u043e\u043a \u0432 \u043c\u0435\u0442\u043e\u0434\u044b.<\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u043d\u0430\u0448 <code>FeedViewController<\/code>, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 <code>ProfileViewController<\/code>, \u043d\u0443 \u0430 \u0432 \u0442\u0440\u0435\u0442\u0438\u0439 <code>TabBarController<\/code>. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0432 <code>SceneDelegate.swift<\/code> \u0441\u0442\u0430\u043d\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u0443\u043d\u043a\u0434\u0430 6 \u043d\u0430\u0448\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f, \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0438 \u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438.<\/p>\n<p> \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0443\u043a\u0446\u0438\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \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:<\/p>\n<p><code>func createFeedViewController() -> UINavigationController {<\/code><\/p>\n<p> \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435<\/p>\n<p>l<code>et feedViewController = FeedViewController()<\/code><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0441\u044f \u0432\u0432\u0435\u0440\u0445\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430<\/p>\n<p><code>feedViewController.title = \"\u041b\u0435\u043d\u0442\u0430\"<\/code><\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0438 \u0441\u0430\u043c\u0443 \u043a\u043d\u043e\u043f\u043a\u0443, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043d\u0430 \u043d\u0435\u0435 \u0438\u043a\u043e\u043d\u043a\u0443 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u0430\u043d\u0435\u043b\u0438 \u0432\u043a\u043b\u0430\u0434\u043e\u043a \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 <code>UITabBarIt<\/code>, \u0433\u0434\u0435  <code>title:<\/code> \u044d\u0442\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0430 <code>image:<\/code> \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f \u0438\u043a\u043e\u043d\u043a\u0430 (\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 &#171;\u0421\u0438\u043c\u0432\u043e\u043b\u044b SF&#187; \u0438\u043b\u0438 \u0432 \u0441\u0430\u043c\u043e\u043c Xcode Edit -> Emoji &amp; Symbols) \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 <code>tag:<\/code>\u044d\u0442\u043e \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0433\u0434\u0435 0 &#8212; \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0432\u0430, \u0430 1 \u0441\u043f\u0440\u0430\u0432\u0430.     <\/p>\n<p><code>feedViewController.tabBarItem = UITabBarItem(title: \"\u041b\u0435\u043d\u0442\u0430\", image: UIImage(systemName: \"doc.richtext\"), tag: 0)<\/code><\/p>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043d\u0430\u0432\u0438\u0433\u0430\u0442\u043e\u0440 \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<\/p>\n<p><code>return UINavigationController(rootViewController: feedViewController)<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u043b\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430  <code>ProfileViewController<\/code>    <\/p>\n<p>\u00a0<code>func createProfileViewController() -> UINavigationController {<\/code><\/p>\n<p><code>let profileViewController = ProfileViewController()<\/code><\/p>\n<p><code>profileViewController.title = \"\u041f\u0440\u043e\u0444\u0438\u043b\u044c\"<\/code><\/p>\n<p><code>profileViewController.tabBarItem = UITabBarItem(title: \"\u041f\u0440\u043e\u0444\u0438\u043b\u044c\", image: UIImage(systemName: \"person.circle\"), tag: 1)<\/code><\/p>\n<p><code>return UINavigationController(rootViewController: profileViewController)<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0434\u0430\u043b\u0438\u043c, \u0437\u0430 \u043d\u0435\u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u0432\u0435\u0440\u0445\u0443: <\/p>\n<p><code>let feedViewController = UINavigationController(rootViewController: FeedViewController()) <\/code><\/p>\n<p><code>let profileViewController = UINavigationController(rootViewController: profileViewController())<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043f\u0430\u043d\u0435\u043b\u0438 \u0432\u043a\u043b\u0430\u0434\u043e\u043a \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044e<\/p>\n<p><code>func createTabBarController() -> UITabBarController {<\/code><\/p>\n<p>\u0423\u0434\u0430\u043b\u0438 \u0441\u0432\u0435\u0440\u0445\u0443 \u0438 \u0432\u0441\u0442\u0430\u0432\u044c \u0432 \u043c\u0435\u0442\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0434\u0430<\/p>\n<p><code>let tabBarController = UITabBarController()<\/code><\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u043f\u0430\u043d\u0435\u043b\u0438 \u0432\u043a\u043b\u0430\u0434\u043e\u043a \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0432\u0435\u0442 \u0441\u0438\u043d\u0438\u0439<\/p>\n<p><code>UITabBar.appearance().backgroundColor = .systemBlue<\/code><\/p>\n<p>\u041f\u043e\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0448\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u043d\u0430 \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0443\u0442\u044c \u0432\u044b\u0448\u0435<\/p>\n<p><code>tabBarController.viewControllers = [createFeedViewController(), createProfileViewController()]<\/code><\/p>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043f\u0430\u043d\u0435\u043b\u044c \u0432\u043a\u043b\u0430\u0434\u043e\u043a<\/p>\n<p><code>return tabBarController<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c <code>tabBarController()<\/code>  \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434  <code>createTabBarController()<\/code>  \u0432<\/p>\n<p><code>window?.rootViewController = tabBarController<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u0449\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0442\u0443 \u043a\u0440\u0430\u0441\u043e\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043c\u0435\u0442\u043e\u0434\u0430\u043c \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u0430\u0445\u043d\u0443\u0449\u0438\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0437\u0430\u0441\u043e\u0440\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u044e <code>SceneDelegate.swift<\/code><\/p>\n<p>\u0414\u0430\u0432\u0430\u0439 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u0435\u0442\u043e\u0434\u0443.<\/p>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e UITabBarController.swift \u0438 \u0432 \u043d\u0435\u0433\u043e \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430\u00a0UINavigationController<\/h2>\n<p>\u041a\u043e\u043c\u0443-\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0432 <code>SceneDelegate.swift<\/code>  \u0438 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0438 \u043f\u043e-\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431.<\/p>\n<p>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0432\u043e\u0439 <code>TabBarController<\/code><\/p>\n<p><code>final class TabBarController: UITabBarController {<\/code><\/p>\n<p>\u0412 \u043d\u0435\u0433\u043e \u043c\u044b \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u0435\u043c <code>FeedViewController<\/code>, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 <code>ProfileViewControlle<\/code>.  \u041c\u044b \u043c\u043e\u0436\u0435\u043d \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0432\u0443\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u0439\u0442\u0435\u043c\u043e\u0432, \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0438 \u043a\u0435\u0439\u0441\u043e\u0432. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 <code>TabBarItem<\/code> \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043d\u0430\u0448\u0438\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432<\/p>\n<p><code>private enum TabBarItem: Int {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 case feed<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 case profile<\/code><\/p>\n<p>\u00a0\u00a0 \u00a0 \u00a0 \u00a0\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 <code>var title: String {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 switch self {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .feed:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return \"\u041b\u0435\u043d\u0442\u0430\"<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .profile:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return \"\u041f\u0440\u043e\u0444\u0438\u043b\u044c\"<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<\/code><\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 <code>}<\/code><\/p>\n<p>\u00a0\u00a0 \u00a0 \u00a0 \u00a0\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0438\u043a\u043e\u043d\u043a\u0438<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 <code>var iconName: String {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 switch self {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .feed:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return \"house\"<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .profile:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return \"person.crop.circle\"<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 }<\/code><\/p>\n<p><code>\u00a0 \u00a0 }<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u044d\u0442\u043e \u0432\u0441\u0435 \u0432 <code>TabBarController<\/code><\/p>\n<p><code>override func viewDidLoad() {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 super.viewDidLoad()<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 self.setupTabBar()<\/code><\/p>\n<p><code>\u00a0 \u00a0 }<\/code><\/p>\n<p>\u0412 \u043c\u0435\u0442\u043e\u0434\u0435    \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b <code>FeedViewController<\/code> \u0438 <code>ProfileViewControlle<\/code>  \u0434\u043b\u044f <code>TabBarController<\/code>. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043a\u0430\u043a \u0438 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0430\u043c\u0438 swift \u0444\u0430\u0439\u043b\u044b!<\/p>\n<p><code>private func setupTabBar() {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 let dataSource: [TabBarItem] = [.feed, .profile]<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 self.viewControllers = dataSource.map {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 switch $0 {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .feed:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 let feedViewController = FeedViewController()<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return self.wrappedInNavigationController(with: feedViewController, title: $0.title)<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .profile:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 let profileViewController = ProfileViewController()<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return self.wrappedInNavigationController(with: profileViewController, title: $0.title)<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 }<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 self.viewControllers?.enumerated().forEach {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $1.tabBarItem.title = dataSource[$0].title<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $1.tabBarItem.image = UIImage(systemName: dataSource[$0].iconName)<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $1.tabBarItem.imageInsets = UIEdgeInsets(top: 5, left: .zero, bottom: -5, right: .zero)<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 }<\/code><\/p>\n<p><code>\u00a0 \u00a0 }<\/code><\/p>\n<p>\u041d\u0443 \u0438 \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u043c <code>wrappedInNavigationController(with: profileViewController, title: $0.title)<\/code>  \u043c\u044b \u043e\u0431\u0435\u0440\u043d\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 <code>FeedViewController<\/code> \u0438\u043b\u0438 <code>ProfileViewControlle<\/code>\u0432 <code>NavigationController<\/code><\/p>\n<p><code>private func wrappedInNavigationController(with: UIViewController, title: Any?) -> UINavigationController {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 self.navigationController?.pushViewController(with, animated: true)<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 return UINavigationController(rootViewController: with)<\/code><\/p>\n<p><code>\u00a0 \u00a0 }<\/code><\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0447\u0438\u0441\u0442\u044b\u043c <code>SceneDelegate.swift<\/code><\/p>\n<p>\u00a0 <code>guard let windowScene = (scene as? UIWindowScene) else { return }<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 self.window = UIWindow(windowScene: windowScene)<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 self.window?.makeKeyAndVisible()<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 self.window?.rootViewController = TabBarController()<\/code><\/p>\n<p>\u00a0\u00a0 \u00a0 \u00a0 \u00a0<\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u043f\u0443\u043d\u043a\u0442\u044b, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/652543\/\"> https:\/\/habr.com\/ru\/post\/652543\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0417\u0430\u0447\u0435\u043c UIKit \u0432 2022<\/h2>\n<p>\u0412 \u043d\u0430\u0447\u0430\u043b\u0435 2022 \u0433\u043e\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 UIKit \u043d\u0430 \u0444\u043e\u043d\u0435 SwiftUI \u043d\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0441\u0442\u0430\u0440\u043e\u043c\u043e\u0434\u043d\u043e. \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u0449\u0435 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 UIKit \u0438 \u0443 \u043d\u0430\u0441 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0430 \u043d\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f, \u0442\u043e \u0435\u0433\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0435\u0449\u0435 \u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043e\u043b\u0438\u0434\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435.<\/p>\n<p>\u0410 \u0435\u0449\u0435 \u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u043c \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u043d\u0438\u0435, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043e\u0442 Storyboard \u043a \u0447\u0438\u0441\u0442\u043e\u043c\u0443 \u043a\u043e\u0434\u0443 \u0432 SwiftUI. \u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 \u0438 \u044d\u0442\u043e \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c, \u0435\u0449\u0435 \u043f\u043e\u043a\u0430, \u0443\u0447\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0438 \u043a\u043e\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0443\u0447\u0438\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0434\u0430.<\/p>\n<h2>\u0417\u0430\u0434\u0430\u0447\u0430<\/h2>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0437\u0430\u0434\u0430\u0447\u0435:<\/p>\n<ol>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c\u00a0<code>Navigation<\/code>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u00a0<code>Single View App<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0434\u0430\u043b\u0438\u0442\u0435 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u00a0<code>Main.storyboard<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u043b\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0432\u00a0<code>Info.plist<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0412\u00a0<code>SceneDelegate.swift<\/code>\u00a0\u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435\u00a0<code>UITabBarController<\/code>. \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432 \u043d\u0435\u0433\u043e \u0434\u0432\u0430\u00a0<code>UINavigationController<\/code>. \u041f\u0435\u0440\u0432\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043b\u0435\u043d\u0442\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u043f\u0440\u043e\u0444\u0438\u043b\u044c.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435\u00a0<code>Tab Bar Item<\/code>\u00a0\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u00a0<code>Assets.xcassets<\/code>\u00a0\u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c SF Symbols.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435\u00a0<code>FeedViewController<\/code>\u00a0\u0438\u00a0<code>ProfileViewController<\/code>\u00a0\u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0438\u0445 \u043a\u0430\u043a root view controller \u0443 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435\u00a0<code>PostViewController<\/code>\u00a0\u0434\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430. \u041f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0438 \u0446\u0432\u0435\u0442 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 view. \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430\u00a0<code>FeedViewController<\/code>\u00a0\u0438 \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043f\u043e\u0441\u0442\u0430. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0442\u0435\u043a\u0435\u00a0<code>UINavigationController<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443\u00a0<code>Post<\/code>\u00a0\u0441\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c\u00a0<code>title: String<\/code>. \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043e\u0431\u044a\u0435\u043a\u0442 \u0442\u0438\u043f\u0430\u00a0<code>Post<\/code>\u00a0\u0432\u00a0<code>FeedViewController<\/code>\u00a0\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0439\u0442\u0435 \u0435\u0433\u043e \u0432\u00a0<code>PostViewController<\/code>. \u0412 \u043a\u043b\u0430\u0441\u0441\u0435\u00a0<code>PostViewController<\/code>\u00a0\u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435\u00a0<code>title<\/code>\u00a0\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u00a0<code>PostViewController<\/code>\u00a0\u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435\u00a0<code>Bar Button Item<\/code>\u00a0\u0432 \u043d\u0430\u0432\u0438\u0433\u0435\u0439\u0448\u043d \u0431\u0430\u0440. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u00a0<code>InfoViewController<\/code>. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u00a0<code>InfoViewController<\/code>\u00a0\u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043d\u0435\u0451 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f\u00a0<code>UIAlertController<\/code>\u00a0\u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u00a0<code>title<\/code>,\u00a0<code>message<\/code>\u00a0\u0438 \u0434\u0432\u0443\u043c\u044f\u00a0<code>UIAlertAction<\/code>. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430\u00a0<code>UIAlertAction<\/code>\u00a0\u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u0440\u0430\u043c\u043a\u0430\u0445 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043f\u0443\u043d\u043a\u0442\u044b 1 \u0438 2. \u041d\u0435 \u0432 \u0441\u043c\u044b\u0441\u043b\u0435 \u0438\u0445 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443-\u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u043e\u0442\u0432\u0435\u0442\u0430\u043c\u0438 \u043f\u0435\u0441\u0442\u0440\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0417\u0430\u043c\u0435\u0447\u0443 \u0442\u043e\u043b\u044c\u043a\u043e, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432 SceneDelegate (\u0435\u0441\u043b\u0438 \u0432\u044b \u0435\u0449\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 Xcode \u0434\u043e 13 \u0432\u0435\u0440\u0441\u0438\u0438, \u0442\u043e AppDelegate), \u0441\u0442\u0440\u043e\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441 Main.storyboard.<\/p>\n<p><code>var window: UIWindow?<\/code><\/p>\n<h2>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0443\u043d\u043a\u0442\u044b 3, 4, 5 \u0438 6. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c!<\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0443\u043d\u043a\u0442\u0430 2 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 2 \u0441\u043f\u043e\u0441\u043e\u0431\u0430: <\/p>\n<ol>\n<li>\n<p>\u0420\u0435\u043b\u0438\u0437\u0430\u0446\u0438\u044f <code>UITabBarController<\/code>  \u0432\u043d\u0443\u0442\u0440\u0438 <code>SceneDelegate.swift<\/code><\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e <code>UITabBarController.swift<\/code> \u0438 \u0432 \u043d\u0435\u0433\u043e \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430\u00a0<code>UINavigationController<\/code><\/p>\n<\/li>\n<\/ol>\n<h2>\u0420\u0435\u043b\u0438\u0437\u0430\u0446\u0438\u044f UITabBarController  \u0432\u043d\u0443\u0442\u0440\u0438 SceneDelegate.swift<\/h2>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 <code>SceneDelegate.swift<\/code> \u0438 \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0437\u0430\u043c\u0435\u043d\u0438\u043c ViewController \u043d\u0430 TabBarController<\/p>\n<p><code>window = UIWindow(frame: windowScene.coordinateSpace.bounds)<\/code><\/p>\n<p><code>window?.windowScene = windowScene<\/code><\/p>\n<p><code>window?.rootViewController = UITabBarController()<\/code><\/p>\n<p><code>window?.makeKeyAndVisible()<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0430\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 <code>ViewController.swift<\/code>. \u0410 \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u043f\u043e\u0439\u0434\u0435\u043c \u043e\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e. \u041d\u0430\u0448 TabBarController \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0438 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b TabBarController \u0447\u0442\u043e-\u0442\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043b, \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b. \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c 2 <code>ViewController<\/code> (cmd\u2318 + N -> Cocoa Touch Class), \u0433\u0434\u0435 Class: \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 <code>FeedViewController<\/code>\u00a0\u0438\u00a0<code>ProfileViewController<\/code>, \u0430 Subclass of: <code>UIViewController<\/code> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0421 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0435 \u0438 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043e\u043d\u0438 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c, \u043c\u044b \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0438\u043c \u0444\u043e\u043d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442:<\/p>\n<p><code>override func viewDidLoad() {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 super.viewDidLoad()<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \/\/ \u0417\u0430\u0434\u0430\u0435\u043c \u0444\u043e\u043d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 view.backgroundColor = .lightGray<\/code><\/p>\n<p><code>}<\/code><\/p>\n<blockquote>\n<p> \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0434\u043b\u044f \u0444\u043e\u043d\u0430 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: .systemBlue). Apple \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 \u043a \u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0438 \u0441\u0432\u0435\u0442\u043b\u043e\u043c\u0443 \u0440\u0435\u0436\u0438\u0436\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432.<\/p>\n<\/blockquote>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430 \u0434\u0430\u0432\u0430\u0439 \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u043d\u0430\u0448\u0438\u043c <code>ViewController<\/code>   \u0440\u0430\u0437\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0432\u0430 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430r \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c<code>FeedViewController<\/code>\u00a0\u0438\u00a0<code>ProfileViewController<\/code>\u00a0\u0438 \u043a\u0430\u043a root view controller. \u0412 <code>SceneDelegate.swift<\/code> \u043f\u0435\u0440\u0435\u0434 <code>window = UIWindow(frame: windowScene.coordinateSpace.bounds<\/code>  \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b   <\/p>\n<p><code>let feedViewController = UINavigationController(rootViewController: FeedViewController()) <\/code><\/p>\n<p><code>let profileViewController = UINavigationController(rootViewController: profileViewController())<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0432\u043a\u043b\u0430\u0434\u043e\u043a \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. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043d\u0435\u043b\u044c \u0432\u043a\u043b\u0430\u0434\u043e\u043a: <\/p>\n<p><code>let tabBarController = UITabBarController()<\/code><\/p>\n<p>\u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0432 \u043d\u0435\u0435 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b:<\/p>\n<p><code>tabBarController.viewControllers = [feedViewController, profileViewController]<\/code><\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c <code>UITabBarController()<\/code>  \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439  <code>tabBarController<\/code>  \u0432<\/p>\n<p><code>window?.rootViewController = UITabBarController()<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442, \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u044d\u043a\u0440\u0430\u043d \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u0438 \u0435\u0441\u043b\u0438 \u043f\u043e\u0449\u0435\u043b\u043a\u0430\u0442\u044c \u0432\u043d\u0438\u0437\u0443 \u0441\u043f\u0440\u0430\u0432\u0430 \u0438 \u0441\u043b\u0435\u0432\u0430, \u0442\u043e \u0434\u0430\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u044d\u043a\u0440\u0430\u043d\u044b. \u0425\u043e\u0442\u044f \u043d\u0430\u0448 TabBar  \u0438 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e. \u042d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043d\u0430\u0448 TabBar, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u0438\u0433\u0440\u0443: \u041a\u0443\u0434\u0430 \u044f \u043d\u0430\u0436\u0438\u043c\u0430\u044e?<\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 TabBar<\/h2>\n<p>\u0414\u0430\u0432\u0430\u0439 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0430\u0448 \u043a\u043e\u0434 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c \u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0432\u0441\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432 \u043a\u0443\u0447\u0443, \u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u043b\u043e\u043a \u0432 \u043c\u0435\u0442\u043e\u0434\u044b.<\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u043d\u0430\u0448 <code>FeedViewController<\/code>, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 <code>ProfileViewController<\/code>, \u043d\u0443 \u0430 \u0432 \u0442\u0440\u0435\u0442\u0438\u0439 <code>TabBarController<\/code>. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0432 <code>SceneDelegate.swift<\/code> \u0441\u0442\u0430\u043d\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u0443\u043d\u043a\u0434\u0430 6 \u043d\u0430\u0448\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f, \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0438 \u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438.<\/p>\n<p> \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0443\u043a\u0446\u0438\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \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:<\/p>\n<p><code>func createFeedViewController() -> UINavigationController {<\/code><\/p>\n<p> \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435<\/p>\n<p>l<code>et feedViewController = FeedViewController()<\/code><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0441\u044f \u0432\u0432\u0435\u0440\u0445\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430<\/p>\n<p><code>feedViewController.title = \"\u041b\u0435\u043d\u0442\u0430\"<\/code><\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0438 \u0441\u0430\u043c\u0443 \u043a\u043d\u043e\u043f\u043a\u0443, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043d\u0430 \u043d\u0435\u0435 \u0438\u043a\u043e\u043d\u043a\u0443 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u0430\u043d\u0435\u043b\u0438 \u0432\u043a\u043b\u0430\u0434\u043e\u043a \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 <code>UITabBarIt<\/code>, \u0433\u0434\u0435  <code>title:<\/code> \u044d\u0442\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0430 <code>image:<\/code> \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0430\u044f \u0438\u043a\u043e\u043d\u043a\u0430 (\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 &#171;\u0421\u0438\u043c\u0432\u043e\u043b\u044b SF&#187; \u0438\u043b\u0438 \u0432 \u0441\u0430\u043c\u043e\u043c Xcode Edit -> Emoji &amp; Symbols) \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 <code>tag:<\/code>\u044d\u0442\u043e \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0433\u0434\u0435 0 &#8212; \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0432\u0430, \u0430 1 \u0441\u043f\u0440\u0430\u0432\u0430.     <\/p>\n<p><code>feedViewController.tabBarItem = UITabBarItem(title: \"\u041b\u0435\u043d\u0442\u0430\", image: UIImage(systemName: \"doc.richtext\"), tag: 0)<\/code><\/p>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043d\u0430\u0432\u0438\u0433\u0430\u0442\u043e\u0440 \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<\/p>\n<p><code>return UINavigationController(rootViewController: feedViewController)<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u043b\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430  <code>ProfileViewController<\/code>    <\/p>\n<p>\u00a0<code>func createProfileViewController() -> UINavigationController {<\/code><\/p>\n<p><code>let profileViewController = ProfileViewController()<\/code><\/p>\n<p><code>profileViewController.title = \"\u041f\u0440\u043e\u0444\u0438\u043b\u044c\"<\/code><\/p>\n<p><code>profileViewController.tabBarItem = UITabBarItem(title: \"\u041f\u0440\u043e\u0444\u0438\u043b\u044c\", image: UIImage(systemName: \"person.circle\"), tag: 1)<\/code><\/p>\n<p><code>return UINavigationController(rootViewController: profileViewController)<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0434\u0430\u043b\u0438\u043c, \u0437\u0430 \u043d\u0435\u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u0432\u0435\u0440\u0445\u0443: <\/p>\n<p><code>let feedViewController = UINavigationController(rootViewController: FeedViewController()) <\/code><\/p>\n<p><code>let profileViewController = UINavigationController(rootViewController: profileViewController())<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043f\u0430\u043d\u0435\u043b\u0438 \u0432\u043a\u043b\u0430\u0434\u043e\u043a \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044e<\/p>\n<p><code>func createTabBarController() -> UITabBarController {<\/code><\/p>\n<p>\u0423\u0434\u0430\u043b\u0438 \u0441\u0432\u0435\u0440\u0445\u0443 \u0438 \u0432\u0441\u0442\u0430\u0432\u044c \u0432 \u043c\u0435\u0442\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0434\u0430<\/p>\n<p><code>let tabBarController = UITabBarController()<\/code><\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u043f\u0430\u043d\u0435\u043b\u0438 \u0432\u043a\u043b\u0430\u0434\u043e\u043a \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0432\u0435\u0442 \u0441\u0438\u043d\u0438\u0439<\/p>\n<p><code>UITabBar.appearance().backgroundColor = .systemBlue<\/code><\/p>\n<p>\u041f\u043e\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0448\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u043d\u0430 \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0443\u0442\u044c \u0432\u044b\u0448\u0435<\/p>\n<p><code>tabBarController.viewControllers = [createFeedViewController(), createProfileViewController()]<\/code><\/p>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043f\u0430\u043d\u0435\u043b\u044c \u0432\u043a\u043b\u0430\u0434\u043e\u043a<\/p>\n<p><code>return tabBarController<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p>\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c <code>tabBarController()<\/code>  \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434  <code>createTabBarController()<\/code>  \u0432<\/p>\n<p><code>window?.rootViewController = tabBarController<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u0449\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0442\u0443 \u043a\u0440\u0430\u0441\u043e\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043c\u0435\u0442\u043e\u0434\u0430\u043c \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u0430\u0445\u043d\u0443\u0449\u0438\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0437\u0430\u0441\u043e\u0440\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u044e <code>SceneDelegate.swift<\/code><\/p>\n<p>\u0414\u0430\u0432\u0430\u0439 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a\u043e \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u0435\u0442\u043e\u0434\u0443.<\/p>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e UITabBarController.swift \u0438 \u0432 \u043d\u0435\u0433\u043e \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430\u00a0UINavigationController<\/h2>\n<p>\u041a\u043e\u043c\u0443-\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0432 <code>SceneDelegate.swift<\/code>  \u0438 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0438 \u043f\u043e-\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431.<\/p>\n<p>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0432\u043e\u0439 <code>TabBarController<\/code><\/p>\n<p><code>final class TabBarController: UITabBarController {<\/code><\/p>\n<p>\u0412 \u043d\u0435\u0433\u043e \u043c\u044b \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u0435\u043c <code>FeedViewController<\/code>, \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 <code>ProfileViewControlle<\/code>.  \u041c\u044b \u043c\u043e\u0436\u0435\u043d \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0432\u0443\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u0439\u0442\u0435\u043c\u043e\u0432, \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0438 \u043a\u0435\u0439\u0441\u043e\u0432. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 <code>TabBarItem<\/code> \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043d\u0430\u0448\u0438\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432<\/p>\n<p><code>private enum TabBarItem: Int {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 case feed<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 case profile<\/code><\/p>\n<p>\u00a0\u00a0 \u00a0 \u00a0 \u00a0\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 <code>var title: String {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 switch self {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .feed:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return \"\u041b\u0435\u043d\u0442\u0430\"<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .profile:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return \"\u041f\u0440\u043e\u0444\u0438\u043b\u044c\"<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<\/code><\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 <code>}<\/code><\/p>\n<p>\u00a0\u00a0 \u00a0 \u00a0 \u00a0\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0438\u043a\u043e\u043d\u043a\u0438<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 <code>var iconName: String {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 switch self {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .feed:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return \"house\"<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .profile:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return \"person.crop.circle\"<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 }<\/code><\/p>\n<p><code>\u00a0 \u00a0 }<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u044d\u0442\u043e \u0432\u0441\u0435 \u0432 <code>TabBarController<\/code><\/p>\n<p><code>override func viewDidLoad() {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 super.viewDidLoad()<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 self.setupTabBar()<\/code><\/p>\n<p><code>\u00a0 \u00a0 }<\/code><\/p>\n<p>\u0412 \u043c\u0435\u0442\u043e\u0434\u0435    \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b <code>FeedViewController<\/code> \u0438 <code>ProfileViewControlle<\/code>  \u0434\u043b\u044f <code>TabBarController<\/code>. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043a\u0430\u043a \u0438 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0430\u043c\u0438 swift \u0444\u0430\u0439\u043b\u044b!<\/p>\n<p><code>private func setupTabBar() {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 let dataSource: [TabBarItem] = [.feed, .profile]<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 self.viewControllers = dataSource.map {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 switch $0 {<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .feed:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 let feedViewController = FeedViewController()<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return self.wrappedInNavigationController(with: feedViewController, title: $0.title)<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case .profile:<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 let profileViewController = ProfileViewController()<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return self.wrappedInNavigationController(with: profileViewController, title: $0.title)<\/code><\/p>\n<p><code>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }<\/code><\/p>\n<p><code>\u00a0 <\/code><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-329871","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=329871"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329871\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=329871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=329871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=329871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}