{"id":293718,"date":"2019-08-22T15:00:24","date_gmt":"2019-08-22T15:00:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=293718"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=293718","title":{"rendered":"\u0412\u0441\u043f\u043b\u044b\u0432\u0430\u0439! \u0422\u0440\u0430\u043d\u0437\u0438\u0448\u0435\u043d\u044b \u0432 iOS"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u0412\u0441\u0435\u043c \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u043e\u0442\u0437\u044b\u0432\u0447\u0438\u0432\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0415\u0449\u0451 \u043b\u0443\u0447\u0448\u0435, \u043a\u043e\u0433\u0434\u0430 \u0432 \u043d\u0438\u0445 \u0435\u0441\u0442\u044c \u0443\u043c\u0435\u0441\u0442\u043d\u044b\u0435 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0438 \u043f\u043e\u043a\u0430\u0436\u0443 \u0441\u043e \u0432\u0441\u0435\u043c \u00ab\u043c\u044f\u0441\u043e\u043c\u00bb, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c, \u043a\u0440\u0443\u0442\u0438\u0442\u044c, \u0432\u0435\u0440\u0442\u0435\u0442\u044c \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u044f\u043a\u043e\u0435 \u0441 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u043c\u0438 \u044d\u043a\u0440\u0430\u043d\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rv\/6h\/rh\/rv6hrh4wggtiiqzyefm33o_plpe.png\"><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<blockquote><p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0430 iOS 10 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0443\u0434\u043e\u0431\u043d\u044b\u0439 <code>UIViewPropertyAnimator<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439. \u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0438\u043b\u0438 \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c. \u042d\u043f\u043b \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <a href=\"https:\/\/devstreaming-cdn.apple.com\/videos\/wwdc\/2018\/803lpnlacvg2jsndx\/803\/hls_vod_mvp.m3u8\">Fluid<\/a>.\u00a0<\/p>\n<p>  \u041d\u043e \u043f\u043e\u0442\u043e\u043c \u044f \u043f\u043e\u043d\u044f\u043b: \u0441\u043b\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0431\u0435\u0437 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u044d\u0442\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0434\u0432\u0435 \u0441\u0442\u0430\u0442\u044c\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438 \u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u044d\u043a\u0440\u0430\u043d, \u0430 \u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0438 \u2014\u00a0\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 (\u043d\u043e \u0441\u0430\u043c\u044b\u0435 \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0435 \u0443\u0436\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/github.com\/akaDuality\/InterruptibleTransition\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a>). <\/p><\/blockquote>\n<p>  <\/p>\n<h2 id=\"kak-rabotayut-tranzisheny\">\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0442\u0440\u0430\u043d\u0437\u0438\u0448\u0435\u043d\u044b<\/h2>\n<p>  <\/p>\n<p>\u0423 <code>UIViewController<\/code> \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u043f\u0435\u0440\u0442\u0438 <code>transitioningDelegate<\/code>. \u042d\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438, \u043a\u0430\u0436\u0434\u0430\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442: <\/p>\n<p>  <\/p>\n<ul>\n<li><code>animationController<\/code> \u0437\u0430 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e,<\/li>\n<li><code>interactionController<\/code> \u0437\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439,<\/li>\n<li><code>presentationController<\/code> \u0437\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435: \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e, frame \u0438 \u0442.\u0434.<\/li>\n<\/ul>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xg\/wl\/rt\/xgwlrt2llgubh_pscgl01_wn6m0.png\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/oy\/ed\/cz\/oyedczhbsfajyqg20qgddpp3sli.gif\"><\/p>\n<p>  <\/p>\n<h2 id=\"gotovim-kontrollery\">\u0413\u043e\u0442\u043e\u0432\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b<\/h2>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0434\u043b\u044f \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0438 \u0434\u043b\u044f <code>UINavigationController<\/code> (\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 <code>UINavigationControllerDelegate<\/code>).<br \/>  \u041c\u044b \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b. \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">class ParentViewController: UIViewController {     @IBAction func openDidPress(_ sender: Any) {         let child = ChildViewController()         self.present(child, animated: true)     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">class ChildViewController: UIViewController {     private let transition = PanelTransition() \/\/ 1     init() {         super.init(nibName: nil, bundle: nil)         transitioningDelegate = transition \/\/ 2         modalPresentationStyle = .custom \/\/ 3     } \u2026 }<\/code><\/pre>\n<p>  <\/p>\n<ol>\n<li>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434. <code>transitioningDelegate<\/code> \u043f\u043e\u043c\u0435\u0447\u0435\u043d \u043a\u0430\u043a <code>weak<\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u044c <code>transition<\/code> \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u043e <code>strong<\/code> \u0441\u0441\u044b\u043b\u043a\u0435.<\/li>\n<li>\u0421\u0435\u0442\u0438\u043c \u043d\u0430\u0448 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0432 <code>transitioningDelegate<\/code>.<\/li>\n<li>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 <code>presentationController<\/code> \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u00a0<code>.custom<\/code> \u0434\u043b\u044f <code>modalPresentationStyle.<\/code>.<\/li>\n<\/ol>\n<p>  <\/p>\n<h2 id=\"pokazyvaem-v-pol-ekrana\">\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0432 \u043f\u043e\u043b-\u044d\u043a\u0440\u0430\u043d\u0430<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u043a\u043e\u0434 \u0434\u043b\u044f <code>PanelTransition<\/code> \u0441 <code>presentationController<\/code>. \u0412\u044b \u0441 \u043d\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438, \u0435\u0441\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043e\u043a\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 <code>UIPopoverController<\/code>. <code>PresentationController<\/code> \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430: \u0444\u0440\u0435\u0439\u043c\u043e\u043c, \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0435\u0439 \u0438 \u0442.\u0434. \u041e\u043d \u0440\u0435\u0448\u0430\u0435\u0442, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043f\u043e\u0432\u0435\u0440\u044b \u043d\u0430 \u0430\u0439\u043f\u0430\u0434\u0435: \u0441 \u043a\u0430\u043a\u0438\u043c \u0444\u0440\u0435\u0439\u043c\u043e\u043c, \u0432 \u043a\u0430\u043a\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043e\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u044b\u0442\u0438\u0435 \u0432 \u0444\u043e\u043d \u043e\u043a\u043d\u0430 \u0438 \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043d\u0435\u0433\u043e.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wb\/a3\/m5\/wba3m5nniluohstu2acoen8alk4.png\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0448\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u043e\u0445\u043e\u0436\u0430: \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u0442\u0435\u043c\u043d\u044f\u0442\u044c \u0444\u043e\u043d, \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0444\u0440\u0435\u0439\u043c \u043d\u0435 \u0432 \u043f\u043e\u043b\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/6c\/5x\/zq\/6c5xzqcxfoydhhyoh9gluryubuu.png\"><\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <code>presentationController(forPresented:, presenting:, source:)<\/code> \u0432\u0435\u0440\u043d\u0451\u043c \u043a\u043b\u0430\u0441\u0441 <code>PresentationController<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">class PanelTransition: NSObject, UIViewControllerTransitioningDelegate {     func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -&gt; UIPresentationController? {         return presentationController = PresentationController(presentedViewController: presented, presenting: presenting ?? source) }<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0447\u0435\u043c\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f 3 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0438 \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 source?<\/b><\/p>\n<div class=\"spoiler_text\">\n<p><code>Source<\/code> \u2013 \u044d\u0442\u043e \u0442\u043e\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u0432\u044b\u0437\u0432\u0430\u043b\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u043f\u043e\u043a\u0430\u0437\u0430. \u041d\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0442\u0440\u0430\u043d\u0437\u0438\u0448\u0438\u043d\u0435 \u2014\u00a0\u043f\u0435\u0440\u0432\u044b\u0439 \u0438\u0437 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e <code>definesPresentationContext = true<\/code>. \u0415\u0441\u043b\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0441\u043c\u0435\u043d\u0438\u0442\u0441\u044f, \u0442\u043e \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 <code>presenting.<\/code><\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 <code>PresentationController<\/code>. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0437\u0430\u0434\u0430\u0434\u0438\u043c \u0444\u0440\u0435\u0439\u043c \u0431\u0443\u0434\u0443\u0449\u0435\u043c\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <code>frameOfPresentedViewInContainerView<\/code>. \u041f\u0443\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0437\u0430\u0439\u043c\u0451\u0442 \u043d\u0438\u0436\u043d\u044e\u044e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u044d\u043a\u0440\u0430\u043d\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">class PresentationController: UIPresentationController {     override var frameOfPresentedViewInContainerView: CGRect {         let bounds = containerView!.bounds         let halfHeight = bounds.height \/ 2         return CGRect(x: 0,                              y: halfHeight,                              width: bounds.width,                              height: halfHeight)     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u044d\u043a\u0440\u0430\u043d, \u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442. \u042d\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043c\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0435\u0439 \u0432\u044c\u044e\u0448\u0435\u043a \u0438 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u044c\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">\/\/ PresentationController.swift     override func presentationTransitionWillBegin() {         super.presentationTransitionWillBegin()         containerView?.addSubview(presentedView!)     }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0415\u0449\u0451 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0444\u0440\u0435\u0439\u043c \u0434\u043b\u044f <code>presentedView<\/code>. <code>containerViewDidLayoutSubviews<\/code>\u200a\u2013\u200a\u043b\u0443\u0447\u0448\u0435\u0435 \u043c\u0435\u0441\u0442\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0430\u043a \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043d\u0430 \u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u044d\u043a\u0440\u0430\u043d\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">\/\/ PresentationController.swift     override func containerViewDidLayoutSubviews() {         super.containerViewDidLayoutSubviews()         presentedView?.frame = frameOfPresentedViewInContainerView     }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c. \u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0434\u043b\u044f <code>UIModalTransitionStyle.coverVertical<\/code>, \u043d\u043e \u0444\u0440\u0435\u0439\u043c \u0431\u0443\u0434\u0435\u0442 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043c\u0435\u043d\u044c\u0448\u0435.<\/p>\n<p>  <\/p>\n<h2 id=\"zatemnyaem-fon\">\u0417\u0430\u0442\u0435\u043c\u043d\u044f\u0435\u043c \u0444\u043e\u043d<\/h2>\n<p>  <\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2013\u00a0\u0437\u0430\u0442\u0435\u043c\u043d\u0438\u0442\u044c \u0444\u043e\u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u0441\u0444\u043e\u043a\u0443\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c.<\/p>\n<p>  <\/p>\n<p>\u0423\u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u0441\u044f \u043e\u0442 <code>PresentationController<\/code> \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0432 \u0444\u0430\u0439\u043b\u0435 <code>PanelTransition<\/code>. \u0412 \u043d\u043e\u0432\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0434 \u0434\u043b\u044f \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">class DimmPresentationController: PresentationController<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432\u044c\u044e\u0448\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0435\u0440\u0445:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">private lazy var dimmView: UIView = {     let view = UIView()     view.backgroundColor = UIColor(white: 0, alpha: 0.3)     view.alpha = 0     return view }()<\/code><\/pre>\n<p>  <\/p>\n<p>\u0411\u0443\u0434\u0435\u043c \u043c\u0435\u043d\u044f\u0442\u044c <code>alpha<\/code> \u0432\u044c\u044e\u0448\u043a\u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e \u0441 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0435\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430. \u0415\u0441\u0442\u044c 4 \u043c\u0435\u0442\u043e\u0434\u0430:<\/p>\n<p>  <\/p>\n<ul>\n<li><code>presentationTransitionWillBegin<\/code><\/li>\n<li><code>presentationTransitionDidEnd<\/code><\/li>\n<li><code>dismissalTransitionWillBegin<\/code><\/li>\n<li><code>dismissalTransitionDidEnd<\/code><\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u0441\u0430\u043c\u044b\u0439 \u0441\u043b\u043e\u0436\u043d\u044b\u0439. \u041d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <code>dimmView<\/code> \u0432 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e, \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0444\u0440\u0435\u0439\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">override func presentationTransitionWillBegin() {     super.presentationTransitionWillBegin()     containerView?.insertSubview(dimmView, at: 0)     performAlongsideTransitionIfPossible { [unowned self] in         self.dimmView.alpha = 1     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">private func performAlongsideTransitionIfPossible(_ block: @escaping () -&gt; Void) {     guard let coordinator = self.presentedViewController.transitionCoordinator else {         block()         return     }      coordinator.animate(alongsideTransition: { (_) in         block()     }, completion: nil) }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0424\u0440\u0435\u0439\u043c \u0434\u043b\u044f <code>dimmView<\/code> \u0437\u0430\u0434\u0430\u0451\u043c \u0432 <code>containerViewDidLayoutSubviews<\/code> (\u043a\u0430\u043a \u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437):<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">override func containerViewDidLayoutSubviews() {     super.containerViewDidLayoutSubviews()     dimmView.frame = containerView!.frame }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u0430 \u0438 \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u0430, \u0438 \u0435\u0441\u043b\u0438 \u043e\u0442\u043c\u0435\u043d\u0438\u043b\u0438, \u0442\u043e \u043d\u0430\u0434\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c <code>dimmView<\/code> \u0438\u0437 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">override func presentationTransitionDidEnd(_ completed: Bool) {     super.presentationTransitionDidEnd(completed)     if !completed {         self.dimmView.removeFromSuperview()     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u0445 \u0441\u043a\u0440\u044b\u0442\u0438\u044f. \u041d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c <code>dimmView<\/code>, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c.<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">override func dismissalTransitionWillBegin() {     super.dismissalTransitionWillBegin()     performAlongsideTransitionIfPossible { [unowned self] in         self.dimmView.alpha = 0     } }  override func dismissalTransitionDidEnd(_ completed: Bool) {     super.dismissalTransitionDidEnd(completed)     if completed {         self.dimmView.removeFromSuperview()     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0444\u043e\u043d \u0437\u0430\u0442\u0435\u043c\u043d\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<h2 id=\"upravlyaem-animaciey\">\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0435\u0439<\/h2>\n<p>  <\/p>\n<h3 id=\"pokazyvaem-kontroller-snizu\">\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0441\u043d\u0438\u0437\u0443<\/h3>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0430\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0412 \u043a\u043b\u0430\u0441\u0441\u0435 <code>PresentationController<\/code> \u0432\u0435\u0440\u043d\u0451\u043c \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0435\u0439 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -&gt; UIViewControllerAnimatedTransitioning? {     return PresentAnimation() }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">extension PresentAnimation: UIViewControllerAnimatedTransitioning {     func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -&gt; TimeInterval {         return duration     }      func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {         let animator = self.animator(using: transitionContext)         animator.startAnimation()     }      func interruptibleAnimator(using transitionContext: UIViewControllerContextTransitioning) -&gt; UIViewImplicitlyAnimating {         return self.animator(using: transitionContext)     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043a\u043e\u0434 \u0447\u0443\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">class PresentAnimation: NSObject {     let duration: TimeInterval = 0.3      private func animator(using transitionContext: UIViewControllerContextTransitioning) -&gt; UIViewImplicitlyAnimating {         \/\/ transitionContext.view \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u044e \u043d\u0443\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u043c \u0435\u0451         let to = transitionContext.view(forKey: .to)!         let finalFrame = transitionContext.finalFrame(for: transitionContext.viewController(forKey: .to)!) \/\/ \u0422\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u0444\u0440\u0435\u0439\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0437\u0430\u0434\u0430\u043b\u0438 \u0432 PresentationController         \/\/ \u0421\u043c\u0435\u0449\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0437\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u044d\u043a\u0440\u0430\u043d\u0430         to.frame = finalFrame.offsetBy(dx: 0, dy: finalFrame.height)         let animator = UIViewPropertyAnimator(duration: duration, curve: .easeOut) {             to.frame = finalFrame \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043d\u0430 \u043c\u0435\u0441\u0442\u043e, \u0442\u0430\u043a \u043e\u043d \u0432\u044b\u0435\u0437\u0436\u0430\u0435\u0442 \u0441\u043d\u0438\u0437\u0443         }          animator.addCompletion { (position) in         \/\/ \u0417\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434, \u0435\u0441\u043b\u0438 \u043e\u043d \u043d\u0435 \u0431\u044b\u043b \u043e\u0442\u043c\u0435\u043d\u0451\u043d             transitionContext.completeTransition(!transitionContext.transitionWasCancelled)         }          return animator     } }<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">UIViewPropertyAnimator \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 iOS 9<\/b><\/p>\n<div class=\"spoiler_text\">\n<p>\u041e\u0431\u043e\u0439\u0442\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e: \u043d\u0443\u0436\u043d\u043e \u0432 \u043a\u043e\u0434\u0435 <code>animateTransition<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0430\u043d\u0438\u043c\u0430\u0442\u043e\u0440, \u0430 \u0441\u0442\u0430\u0440\u043e\u0435 \u0430\u043f\u0438 <code>UIView.animate\u2026<\/code> \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {     let to = transitionContext.view(forKey: .to)!     let finalFrame = transitionContext.finalFrame(for: transitionContext.viewController(forKey: .to)!)      to.frame = finalFrame.offsetBy(dx: 0, dy: finalFrame.height)      UIView.animate(withDuration: duration, delay: 0,                             usingSpringWithDamping: 1, initialSpringVelocity: 0,                             options: [.curveEaseOut], animations: {                                 to.frame = finalFrame                             }) { (_) in                                 transitionContext.completeTransition(!transitionContext.transitionWasCancelled)                             } }  \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d `interruptibleAnimator(using transitionContext:)`<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u0442\u0440\u0430\u043d\u0437\u0438\u0448\u0435\u043d, \u0442\u043e \u043c\u0435\u0442\u043e\u0434 interruptibleAnimator \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u043f\u0438\u0441\u0430\u0442\u044c. \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c. <\/p>\n<p>  <\/p>\n<h3 id=\"skryvaem-kontroller-vniz\">\u0421\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0432\u043d\u0438\u0437<\/h3>\n<p>  <\/p>\n<p>\u0412\u0441\u0451 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443. \u041a\u043b\u0430\u0441\u0441 \u0446\u0435\u043b\u0438\u043a\u043e\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"swift\">class DismissAnimation: NSObject {     let duration: TimeInterval = 0.3      private func animator(using transitionContext: UIViewControllerContextTransitioning) -&gt; UIViewImplicitlyAnimating {         let from = transitionContext.view(forKey: .from)!         let initialFrame = transitionContext.initialFrame(for: transitionContext.viewController(forKey: .from)!)          let animator = UIViewPropertyAnimator(duration: duration, curve: .easeOut) {             from.frame = initialFrame.offsetBy(dx: 0, dy: initialFrame.height)         }          animator.addCompletion { (position) in             transitionContext.completeTransition(!transitionContext.transitionWasCancelled)         }          return animator     } }  extension DismissAnimation: UIViewControllerAnimatedTransitioning {     func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -&gt; TimeInterval {         return duration     }      func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {         let animator = self.animator(using: transitionContext)         animator.startAnimation()     }      func interruptibleAnimator(using transitionContext: UIViewControllerContextTransitioning) -&gt; UIViewImplicitlyAnimating {         return self.animator(using: transitionContext)     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c\u0438:<br \/>  \u2013 \u0441\u043d\u0438\u0437\u0443 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439;<br \/>  \u2013 \u0441\u043f\u0440\u0430\u0432\u0430 \u2013\u00a0\u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043f\u043e \u043c\u0435\u043d\u044e;<br \/>  \u2013 \u0441\u0432\u0435\u0440\u0445\u0443 \u2013 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ny\/pj\/cj\/nypjcjgob02jdthiilnaixoorxc.png\"><br \/>  <em><a href=\"https:\/\/apps.apple.com\/ru\/app\/%D0%B4%D0%BE%D0%B4%D0%BE-%D0%BF%D0%B8%D1%86%D1%86%D0%B0-%D0%B4%D0%BE%D1%81%D1%82%D0%B0%D0%B2%D0%BA%D0%B0-%D0%BF%D0%B8%D1%86%D1%86%D1%8B\/id894649641\">\u0414\u043e\u0434\u043e \u041f\u0438\u0446\u0446\u0430<\/a>, <a href=\"https:\/\/www.artlebedev.ru\/perekus\/\">\u041f\u0435\u0440\u0435\u043a\u0443\u0441<\/a> \u0438 <a href=\"https:\/\/ilyabirman.ru\/meanwhile\/all\/sayve\/\">\u0421\u0435\u0439\u0432\u0438<\/a><\/em><\/p>\n<p>  <\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0436\u0435\u0441\u0442\u043e\u043c, \u0430 \u043f\u043e\u0442\u043e\u043c \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0433\u043e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u0435\u043c\u043e\u0439. \u0415\u0441\u043b\u0438 \u043d\u0435 \u0442\u0435\u0440\u043f\u0438\u0442\u0441\u044f, \u0442\u043e \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0443\u0436\u0435 <a href=\"https:\/\/github.com\/akaDuality\/InterruptibleTransition\">\u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435.<\/a><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c <a href=\"https:\/\/telegram.im\/dodomobile\">\u043d\u0430 \u043a\u0430\u043d\u0430\u043b Dodo Pizza Mobile.<\/a><\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <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\/company\/dodopizzaio\/blog\/463527\/\"> https:\/\/habr.com\/ru\/company\/dodopizzaio\/blog\/463527\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u0412\u0441\u0435\u043c \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f \u043e\u0442\u0437\u044b\u0432\u0447\u0438\u0432\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0415\u0449\u0451 \u043b\u0443\u0447\u0448\u0435, \u043a\u043e\u0433\u0434\u0430 \u0432 \u043d\u0438\u0445 \u0435\u0441\u0442\u044c \u0443\u043c\u0435\u0441\u0442\u043d\u044b\u0435 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0438 \u043f\u043e\u043a\u0430\u0436\u0443 \u0441\u043e \u0432\u0441\u0435\u043c \u00ab\u043c\u044f\u0441\u043e\u043c\u00bb, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c, \u043a\u0440\u0443\u0442\u0438\u0442\u044c, \u0432\u0435\u0440\u0442\u0435\u0442\u044c \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u044f\u043a\u043e\u0435 \u0441 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u043c\u0438 \u044d\u043a\u0440\u0430\u043d\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rv\/6h\/rh\/rv6hrh4wggtiiqzyefm33o_plpe.png\"><\/p>\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-293718","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293718","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=293718"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293718\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=293718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=293718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=293718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}