{"id":446629,"date":"2025-01-31T15:02:51","date_gmt":"2025-01-31T15:02:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=446629"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2025-01-31T15:02:51","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=446629","title":{"rendered":"<span>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u043e\u0442 DeepSeek \u0438 ChatGPT<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0411\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0439 &#8212; \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0434\u0432\u0430 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 SwiftUI \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u043c, \u043a\u0430\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043b\u0443\u0447\u0448\u0435 \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0441 \u044d\u0442\u0438\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438.<\/p>\n<p>\u042f \u0440\u0435\u0448\u0438\u043b\u0430 \u0434\u0430\u0442\u044c \u0434\u0432\u0430 \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e: \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0433\u0440\u0443 &#171;\u0417\u043c\u0435\u0439\u043a\u0430&#187;, \u0432\u043e\u0442 \u043c\u043e\u0439 \u043f\u0440\u043e\u043c\u043f\u0442:<\/p>\n<blockquote>\n<p>\u041d\u0430\u043f\u0438\u0448\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441 \u043d\u0443\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 SwiftUI. \u0412 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d. \u0421\u0434\u0435\u043b\u0430\u0439 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438\u0433\u0440\u044b \u0437\u043c\u0435\u0439\u043a\u0430. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0435\u043b\u0435\u043d\u0430\u044f \u0437\u043c\u0435\u044f \u0438\u0437 3-\u0445 \u043a\u0432\u0430\u0440\u0430\u0442\u0438\u043a\u043e\u0432, \u043f\u043e \u043c\u0435\u0440\u0435 \u0441\u044a\u0435\u0434\u0430\u043d\u0438\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u043a\u0430 \u043e\u043d\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 1 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 (\u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u0441\u044a\u0435\u0434\u0430\u0435\u0442 &#8212; \u0440\u0430\u0437\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432)<\/p>\n<\/blockquote>\n<p><span class=\"habrahidden\">\u0415\u0441\u043b\u0438 \u043b\u0435\u043d\u044c \u0447\u0438\u0442\u0430\u0442\u044c &#8212; \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0438\u0434\u0435\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f (\u0432 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u043a\u0430\u043d\u0430\u043b\u0435).<\/span><\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u043b ChatGPT:<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442 ChatGPT<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0412\u043e\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0439 \u0438\u0433\u0440\u044b \u00ab\u0417\u043c\u0435\u0439\u043a\u0430\u00bb \u043d\u0430 SwiftUI. \u0417\u043c\u0435\u044f \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0441 \u0434\u043b\u0438\u043d\u043e\u0439 \u0432 3 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0438 \u0440\u0430\u0441\u0442\u0451\u0442 \u043f\u0440\u0438 \u043f\u043e\u0435\u0434\u0430\u043d\u0438\u0438 \u0435\u0434\u044b \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u0432\u0430\u0439\u043f\u0430\u043c\u0438.<\/p>\n<pre><code class=\"swift\">import SwiftUI  struct SnakeGameView: View {     @State private var snake: [CGPoint] = [CGPoint(x: 100, y: 100), CGPoint(x: 80, y: 100), CGPoint(x: 60, y: 100)]     @State private var food: CGPoint = CGPoint(x: 200, y: 200)     @State private var direction: CGPoint = CGPoint(x: 20, y: 0)     @State private var timer = Timer.publish(every: 0.2, on: .main, in: .common).autoconnect()          let gridSize: CGFloat = 20     let colors: [Color] = [.red, .blue, .yellow, .purple, .orange]          var body: some View {         ZStack {             Color.black.ignoresSafeArea()                          ForEach(snake.indices, id: \\..self) { index in                 Rectangle()                     .fill(Color.green)                     .frame(width: gridSize, height: gridSize)                     .position(snake[index])             }                          Rectangle()                 .fill(colors.randomElement()!)                 .frame(width: gridSize, height: gridSize)                 .position(food)         }         .gesture(DragGesture()             .onEnded { gesture in                 let xMove = gesture.translation.width                 let yMove = gesture.translation.height                                  if abs(xMove) &gt; abs(yMove) {                     direction = xMove &gt; 0 ? CGPoint(x: gridSize, y: 0) : CGPoint(x: -gridSize, y: 0)                 } else {                     direction = yMove &gt; 0 ? CGPoint(x: 0, y: gridSize) : CGPoint(x: 0, y: -gridSize)                 }             }         )         .onReceive(timer) { _ in             moveSnake()         }     }          private func moveSnake() {         var newHead = snake.first!         newHead.x += direction.x         newHead.y += direction.y                  if newHead == food {             snake.insert(newHead, at: 0)             food = generateNewFood()         } else {             snake.insert(newHead, at: 0)             snake.removeLast()         }     }          private func generateNewFood() -&gt; CGPoint {         let x = CGFloat(Int.random(in: 0..&lt;Int(UIScreen.main.bounds.width \/ gridSize))) * gridSize         let y = CGFloat(Int.random(in: 0..&lt;Int(UIScreen.main.bounds.height \/ gridSize))) * gridSize         return CGPoint(x: x, y: y)     } }  struct ContentView: View {     var body: some View {         SnakeGameView()     } }  @main struct SnakeGameApp: App {     var body: some Scene {         WindowGroup {             ContentView()         }     } }<\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0443\u044e \u0437\u043c\u0435\u0439\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u0430\u0439\u043f\u0430\u043c\u0438. \u041a\u043e\u0433\u0434\u0430 \u0437\u043c\u0435\u044f \u0441\u044a\u0435\u0434\u0430\u0435\u0442 \u0435\u0434\u0443, \u043e\u043d\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u043b\u0438\u043d\u0435, \u0430 \u0435\u0434\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u043c\u0435\u043d\u044f\u0435\u0442 \u0446\u0432\u0435\u0442. \u0418\u0433\u0440\u0430 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u0430, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0435 \u0441 \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438 \u0438\u043b\u0438 \u0441\u0430\u043c\u043e\u0439 \u0441\u043e\u0431\u043e\u0439 \u0434\u043b\u044f \u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u0438\u044f. \ud83d\ude80<\/p>\n<\/div>\n<\/details>\n<p>\u0418 \u0432\u043e\u0442 \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438:<\/p>\n<div class=\"floating-image\">\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8a7\/eea\/d2e\/8a7eead2e7141a0691c748aad5357b20.gif\" alt=\"ChatGPT \u0437\u043c\u0435\u0439\u043a\u0430\" title=\"ChatGPT \u0437\u043c\u0435\u0439\u043a\u0430\" width=\"544\" height=\"1120\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8a7\/eea\/d2e\/8a7eead2e7141a0691c748aad5357b20.gif\"\/><\/p>\n<div><figcaption>ChatGPT \u0437\u043c\u0435\u0439\u043a\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c, \u0432\u0441\u0451 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e, \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430. \u0415\u0441\u0442\u044c \u043d\u0435\u0434\u043e\u0447\u0435\u0442\u044b, \u0447\u0442\u043e \u0437\u043c\u0435\u0439\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0443\u0439\u0442\u0438 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u044d\u043a\u0440\u0430\u043d\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440. \u041d\u043e \u0434\u043b\u044f \u0431\u0430\u0437\u044b \u0441\u043e\u0439\u0434\u0451\u0442.<\/p>\n<\/div>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043f\u0440\u043e\u043c\u043f\u0442 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 DeepSeek, \u0432\u043e\u0442 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442 DeepSeek<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438\u0433\u0440\u044b &#171;\u0417\u043c\u0435\u0439\u043a\u0430&#187; \u043d\u0430 SwiftUI. \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u043c\u0435\u0439\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u044d\u043a\u0440\u0430\u043d\u0443 \u0438 &#171;\u0441\u044a\u0435\u0434\u0430\u0442\u044c&#187; \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u043a\u0438, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044f\u0441\u044c \u0432 \u0434\u043b\u0438\u043d\u0443.<\/p>\n<h4>\u0428\u0430\u0433\u0438 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/h4>\n<ol>\n<li>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u043b\u044f \u0437\u043c\u0435\u0439\u043a\u0438 \u0438 \u0435\u0434\u044b.<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043b\u043e\u0433\u0438\u043a\u0443 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0437\u043c\u0435\u0439\u043a\u0438.<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043a\u0430\u0441\u0430\u043d\u0438\u0439 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u043c\u0435\u0439\u043a\u043e\u0439.<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0442\u0440\u0438\u0441\u0443\u0435\u043c \u0437\u043c\u0435\u0439\u043a\u0443 \u0438 \u0435\u0434\u0443 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435.<\/strong><\/p>\n<\/li>\n<\/ol>\n<h4>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/h4>\n<pre><code class=\"swift\">import SwiftUI  struct ContentView: View {     @State private var snake: [CGPoint] = [         CGPoint(x: 100, y: 100),         CGPoint(x: 90, y: 100),         CGPoint(x: 80, y: 100)     ]     @State private var food: CGPoint = CGPoint(x: 200, y: 200)     @State private var direction: CGPoint = CGPoint(x: 10, y: 0)     @State private var foodColor: Color = .red     @State private var score: Int = 0          let timer = Timer.publish(every: 0.1, on: .main, in: .common).autoconnect()          var body: some View {         ZStack {             Color.black.edgesIgnoringSafeArea(.all)                          \/\/ \u0420\u0438\u0441\u0443\u0435\u043c \u0437\u043c\u0435\u0439\u043a\u0443             ForEach(snake, id: \\.self) { segment in                 Rectangle()                     .fill(Color.green)                     .frame(width: 10, height: 10)                     .position(segment)             }                          \/\/ \u0420\u0438\u0441\u0443\u0435\u043c \u0435\u0434\u0443             Rectangle()                 .fill(foodColor)                 .frame(width: 10, height: 10)                 .position(food)                          \/\/ \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u0441\u0447\u0435\u0442             Text(\"Score: \\(score)\")                 .foregroundColor(.white)                 .font(.largeTitle)                 .padding()         }         .onReceive(timer) { _ in             moveSnake()         }         .gesture(             DragGesture()                 .onEnded { gesture in                     let delta = gesture.translation                     if abs(delta.width) &gt; abs(delta.height) {                         \/\/ \u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0432\u0430\u0439\u043f                         if delta.width &gt; 0 {                             direction = CGPoint(x: 10, y: 0) \/\/ \u0412\u043f\u0440\u0430\u0432\u043e                         } else {                             direction = CGPoint(x: -10, y: 0) \/\/ \u0412\u043b\u0435\u0432\u043e                         }                     } else {                         \/\/ \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0432\u0430\u0439\u043f                         if delta.height &gt; 0 {                             direction = CGPoint(x: 0, y: 10) \/\/ \u0412\u043d\u0438\u0437                         } else {                             direction = CGPoint(x: 0, y: -10) \/\/ \u0412\u0432\u0435\u0440\u0445                         }                     }                 }         )     }          func moveSnake() {         var newSnake = snake         let head = newSnake[0]                  \/\/ \u041d\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0433\u043e\u043b\u043e\u0432\u044b         let newHead = CGPoint(x: head.x + direction.x, y: head.y + direction.y)                  \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0441\u044a\u0435\u043b\u0430 \u043b\u0438 \u0437\u043c\u0435\u0439\u043a\u0430 \u0435\u0434\u0443         if abs(newHead.x - food.x) &lt; 10 &amp;&amp; abs(newHead.y - food.y) &lt; 10 {             score += 1             generateFood()         } else {             newSnake.removeLast()         }                  newSnake.insert(newHead, at: 0)         snake = newSnake     }          func generateFood() {         let maxX = UIScreen.main.bounds.width - 10         let maxY = UIScreen.main.bounds.height - 10                  food = CGPoint(             x: CGFloat.random(in: 0...maxX),             y: CGFloat.random(in: 0...maxY)         )                  foodColor = Color(             red: Double.random(in: 0...1),             green: Double.random(in: 0...1),             blue: Double.random(in: 0...1)         )     } }  @main struct SnakeApp: App {     var body: some Scene {         WindowGroup {             ContentView()         }     } }<\/code><\/pre>\n<h4>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430:<\/h4>\n<ol>\n<li>\n<p><strong>\u0417\u043c\u0435\u0439\u043a\u0430 \u0438 \u0435\u0434\u0430:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0417\u043c\u0435\u0439\u043a\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c\u00a0<code>CGPoint<\/code>, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u2014 \u044d\u0442\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430 \u0437\u043c\u0435\u0439\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0434\u0430 \u2014 \u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u0435\u043d\u044f\u0435\u0442 \u0446\u0432\u0435\u0442 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0437\u043c\u0435\u0439\u043a\u0438:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0417\u043c\u0435\u0439\u043a\u0430 \u0434\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044f \u0441\u0432\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u044b\u0435 0.1 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0437\u043c\u0435\u0439\u043a\u0430 &#171;\u0441\u044a\u0435\u0434\u0430\u0435\u0442&#187; \u0435\u0434\u0443, \u0435\u0435 \u0434\u043b\u0438\u043d\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u0441\u0435\u0433\u043c\u0435\u043d\u0442, \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u0435\u0434\u0430.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u0432\u0430\u0439\u043f\u0430\u0435\u0442 \u0432\u043f\u0440\u0430\u0432\u043e,\u00a0\u0437\u043c\u0435\u0439\u043a\u0430 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043f\u0440\u0430\u0432\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u0432\u0430\u0439\u043f\u0430\u0435\u0442 \u0432\u043b\u0435\u0432\u043e, \u0437\u043c\u0435\u0439\u043a\u0430 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043b\u0435\u0432\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u0441\u0432\u0430\u0439\u043f\u043e\u0432 \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043d\u0438\u0437.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0417\u043c\u0435\u0439\u043a\u0430 \u0438 \u0435\u0434\u0430 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>Rectangle<\/code>\u00a0\u0432 SwiftUI.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4>\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c:<\/h4>\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 \u0432 Xcode \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c SwiftUI.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430\u00a0<code>ContentView.swift<\/code>\u00a0\u043d\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043a\u043e\u0434.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 \u0438\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.<\/p>\n<\/li>\n<\/ol>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u0433\u0440\u044b &#171;\u0417\u043c\u0435\u0439\u043a\u0430&#187; \u043d\u0430 SwiftUI!<\/p>\n<\/div>\n<\/details>\n<div class=\"floating-image\">\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4b0\/63d\/2d7\/4b063d2d7c6f92301bb58a705a50ebed.gif\" alt=\"DeepSeek \u0437\u043c\u0435\u0439\u043a\u0430\" title=\"DeepSeek \u0437\u043c\u0435\u0439\u043a\u0430\" width=\"544\" height=\"1120\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4b0\/63d\/2d7\/4b063d2d7c6f92301bb58a705a50ebed.gif\"\/><\/p>\n<div><figcaption>DeepSeek \u0437\u043c\u0435\u0439\u043a\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0427\u0442\u043e \u0442\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e: \u0437\u043c\u0435\u0439\u043a\u0430 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c \u0441\u0438\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0447\u0443\u0442\u044c \u0432\u044b\u0448\u0435. \u041f\u0440\u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435, DeepSeek \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043e\u0442 \u0441\u0435\u0431\u044f \u043b\u0435\u0439\u0431\u043b \u0441 \u043f\u043e\u0434\u0441\u0447\u0451\u0442\u043e\u043c \u043e\u0447\u043a\u043e\u0432. \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0437\u043c\u0435\u0439\u043a\u0430 \u0443\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0440\u0430\u043c\u043a\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f. <\/p>\n<p>\u0418 \u043a\u0441\u0442\u0430\u0442\u0438, \u044f \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0430, \u043a\u0430\u043a\u0438\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0431\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0432\u0430\u0439\u043f\u0443 (\u044d\u0442\u043e \u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043d\u043e \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043c\u043d\u043e\u0433\u043e: \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438, \u0433\u0438\u0440\u043e\u0441\u043a\u043e\u043f \u0438 \u043f\u0440.)<\/p>\n<\/div>\n<p>\u0421\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e \u0441 \u043f\u0435\u0440\u0432\u044b\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0435\u043c \u043e\u0431\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c. \u0421\u0447\u0451\u0442 1:1.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 \u043f\u0440\u0435\u0434\u0434\u0432\u0435\u0440\u0438\u0438 14 \u0444\u0435\u0432\u0440\u0430\u043b\u044f \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u0443\u0434\u0430\u0440\u0438\u043b\u0438 \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0431\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0443\u044e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e. \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0431\u044b\u043b \u043f\u0440\u043e\u043c\u043f\u0442:<\/p>\n<blockquote>\n<p>\u041d\u0430\u043f\u0438\u0448\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441 \u043d\u0443\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 SwiftUI. \u0412 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d. \u041d\u0430 \u043d\u0451\u043c \u043d\u0430 \u0442\u0451\u043c\u043d\u043e\u043c \u0444\u043e\u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f:<\/p>\n<p>\u0421\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u043f\u043b\u0430\u0432\u043d\u043e \u043f\u0430\u0434\u0430\u044e\u0442 \u0441\u0432\u0435\u0440\u0445\u0443 \u044d\u043a\u0440\u0430\u043d\u0430, \u043d\u043e \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043f\u043e \u044d\u043a\u0440\u0430\u043d\u0443 \u043e\u043d\u0438 \u0440\u0430\u0437\u043b\u0435\u0442\u0430\u044e\u0442\u0441\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u044b. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044f\u0440\u043a\u043e \u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0421\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u0442\u0442\u0435\u043d\u043a\u043e\u0432 \u0440\u043e\u0437\u043e\u0432\u043e\u0433\u043e \u0438 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430.<\/p>\n<\/blockquote>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441 ChatGPT. \u0412\u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442 ChatGPT<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0412\u043e\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 SwiftUI, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u044d\u0444\u0444\u0435\u043a\u0442 \u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0445 \u0441\u0435\u0440\u0434\u0435\u0447\u0435\u043a \u0441 \u0440\u0430\u0437\u043b\u0435\u0442\u043e\u043c \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435.<\/p>\n<p><strong>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434?<\/strong><\/p>\n<p>\u2022\u00a0<strong>\u0421\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u043f\u0430\u0434\u0430\u044e\u0442 \u0441\u0432\u0435\u0440\u0445\u0443<\/strong>\u00a0\u044d\u043a\u0440\u0430\u043d\u0430 \u0441 \u0440\u0430\u0437\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c.<\/p>\n<p>\u2022\u00a0<strong>\u041a\u043b\u0438\u043a \u043f\u043e \u044d\u043a\u0440\u0430\u043d\u0443<\/strong>\u00a0\u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u0440\u0430\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u0441\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<\/p>\n<p>\u2022\u00a0<strong>\u0420\u0430\u0437\u043d\u044b\u0435 \u043e\u0442\u0442\u0435\u043d\u043a\u0438 \u0440\u043e\u0437\u043e\u0432\u043e\u0433\u043e<\/strong>\u00a0\u0438\u00a0<strong>\u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0441\u0435\u0440\u0434\u0435\u0447\u0435\u043a<\/strong>\u00a0\u0434\u0435\u043b\u0430\u044e\u0442 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439.<\/p>\n<pre><code class=\"swift\">import SwiftUI  struct Heart: Identifiable {     let id = UUID()     var position: CGPoint     var size: CGFloat     var color: Color     var velocity: CGFloat }  struct ContentView: View {     @State private var hearts: [Heart] = []     @State private var explode = false     let screenWidth = UIScreen.main.bounds.width     let screenHeight = UIScreen.main.bounds.height      var body: some View {         ZStack {             Color.black.ignoresSafeArea()              ForEach(hearts) { heart in                 HeartShape()                     .fill(heart.color)                     .frame(width: heart.size, height: heart.size)                     .position(heart.position)                     .opacity(explode ? 0.5 : 1)                     .animation(.easeInOut(duration: 1.5), value: explode)             }         }         .onAppear {             startDroppingHearts()         }         .onTapGesture {             explodeHearts()         }     }      func startDroppingHearts() {         Timer.scheduledTimer(withTimeInterval: 0.3, repeats: true) { timer in             let newHeart = Heart(                 position: CGPoint(x: CGFloat.random(in: 0...screenWidth), y: -50),                 size: CGFloat.random(in: 20...50),                 color: Color(red: Double.random(in: 0.8...1), green: Double.random(in: 0...0.3), blue: Double.random(in: 0.5...0.7)),                 velocity: CGFloat.random(in: 2...5)             )              hearts.append(newHeart)              withAnimation(.linear(duration: 3)) {                 for index in hearts.indices {                     hearts[index].position.y += screenHeight + 50                 }             }              hearts.removeAll { $0.position.y &gt; screenHeight + 50 }         }     }      func explodeHearts() {         explode = true         withAnimation(.easeOut(duration: 0.5)) {             for index in hearts.indices {                 hearts[index].position.x += CGFloat.random(in: -100...100)                 hearts[index].position.y += CGFloat.random(in: -100...100)             }         }          DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {             explode = false         }     } }  struct HeartShape: Shape {     func path(in rect: CGRect) -&gt; Path {         var path = Path()          let width = rect.width         let height = rect.height          path.move(to: CGPoint(x: width \/ 2, y: height))         path.addCurve(to: CGPoint(x: 0, y: height \/ 3),                       control1: CGPoint(x: width * 0.3, y: height * 1.1),                       control2: CGPoint(x: 0, y: height * 0.6))          path.addArc(center: CGPoint(x: width * 0.25, y: height \/ 3),                     radius: width * 0.25,                     startAngle: .degrees(180),                     endAngle: .degrees(0),                     clockwise: false)          path.addArc(center: CGPoint(x: width * 0.75, y: height \/ 3),                     radius: width * 0.25,                     startAngle: .degrees(180),                     endAngle: .degrees(0),                     clockwise: false)          path.addCurve(to: CGPoint(x: width \/ 2, y: height),                       control1: CGPoint(x: width, y: height * 0.6),                       control2: CGPoint(x: width * 0.7, y: height * 1.1))          return path     } }  @main struct HeartsApp: App {     var body: some Scene {         WindowGroup {             ContentView()         }     } }<\/code><\/pre>\n<p><strong>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442?<\/strong><\/p>\n<p>\u2022\u00a0<strong>\u041f\u0430\u0434\u0430\u044e\u0449\u0438\u0435 \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438<\/strong>\u00a0\u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0435 0.3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u043f\u043b\u0430\u0432\u043d\u043e \u0434\u0432\u0438\u0436\u0443\u0442\u0441\u044f \u0432\u043d\u0438\u0437.<\/p>\n<p>\u2022\u00a0<strong>\u0421\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438 \u043e\u0442\u0442\u0435\u043d\u043a\u0430 \u0440\u043e\u0437\u043e\u0432\u043e\u0433\u043e<\/strong>.<\/p>\n<p>\u2022\u00a0<strong>\u041f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043f\u043e \u044d\u043a\u0440\u0430\u043d\u0443<\/strong>\u00a0\u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u0440\u0430\u0437\u043b\u0435\u0442\u0430\u044e\u0442\u0441\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438.<\/p>\n<p>\u2022\u00a0<strong>\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u0438<\/strong>\u00a0\u0434\u0435\u043b\u0430\u044e\u0442 \u0440\u0430\u0437\u043b\u0435\u0442 \u043f\u043b\u0430\u0432\u043d\u044b\u043c \u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c.<\/p>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0432 Xcode, \u0438 \u0442\u044b \u0443\u0432\u0438\u0434\u0438\u0448\u044c \u043c\u0430\u0433\u0438\u044e \ud83d\udc96\u2728!<\/p>\n<\/div>\n<\/details>\n<div class=\"floating-image\">\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/641\/eea\/8e2\/641eea8e2e7037bb06e5cbff92c5cccb.gif\" alt=\"ChatCPT \u043f\u043e\u043f\u044b\u0442\u043a\u0430 1\" title=\"ChatCPT \u043f\u043e\u043f\u044b\u0442\u043a\u0430 1\" width=\"544\" height=\"1120\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/641\/eea\/8e2\/641eea8e2e7037bb06e5cbff92c5cccb.gif\"\/><\/p>\n<div><figcaption>ChatCPT \u043f\u043e\u043f\u044b\u0442\u043a\u0430 1<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0445\u0440\u0435\u043d\u044c. \u041d\u043e \u044f \u0440\u0435\u0448\u0438\u043b\u0430 \u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0448\u0430\u043d\u0441 \u0438 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u043f\u0430\u0434\u0430\u043b\u0438 \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d.<\/p>\n<\/div>\n<p>\u0421\u043e \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0430\u0437\u0430:<\/p>\n<div class=\"floating-image\">\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e75\/23d\/136\/e7523d136600fa8820bdf51ad2c8072a.gif\" alt=\"ChatCPT \u043f\u043e\u043f\u044b\u0442\u043a\u0430 2\" title=\"ChatCPT \u043f\u043e\u043f\u044b\u0442\u043a\u0430 2\" width=\"544\" height=\"1120\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e75\/23d\/136\/e7523d136600fa8820bdf51ad2c8072a.gif\"\/><\/p>\n<div><figcaption>ChatCPT \u043f\u043e\u043f\u044b\u0442\u043a\u0430 2<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0443\u0443\u0443\u0443, \u043f\u043e\u0447\u0442\u0438. \u0421\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u043f\u0430\u0434\u0430\u044e\u0442, \u043e\u043d\u0438 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430. \u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 &#171;\u0443\u043b\u0451\u0442&#187; \u0432\u043d\u0438\u0437 \u0438 \u0434\u0430\u043b\u044c\u0448\u0435 \u043e\u043f\u044f\u0442\u044c \u0433\u043b\u044e\u043a, \u0447\u0442\u043e \u043e\u043d\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f.<\/p>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u043e\u043a, \u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043a\u043e\u0434 \u044f \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0430 \u0432\u043e\u043e\u0431\u0449\u0435.<\/p>\n<\/div>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 DeepSeek<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442 DeepSeek<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 SwiftUI \u0441 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0435\u0439 \u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0445 \u0441\u0435\u0440\u0434\u0435\u0447\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u043b\u0435\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d. \u0412\u043e\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"swift\">import SwiftUI  struct Heart: Identifiable {     let id = UUID()     var position: CGPoint     var color: Color     var size: CGFloat     var isFlying: Bool = false }  struct ContentView: View {     @State private var hearts: [Heart] = []     @State private var timer: Timer?          var body: some View {         ZStack {             Color.black                 .edgesIgnoringSafeArea(.all)                          ForEach(hearts) { heart in                 Image(systemName: \"heart.fill\")                     .font(.system(size: heart.size))                     .foregroundColor(heart.color)                     .position(heart.position)                     .animation(.linear(duration: heart.isFlying ? 0.5 : 10), value: heart.position)             }         }         .onAppear {             startHeartsAnimation()         }         .onDisappear {             timer?.invalidate()         }         .onTapGesture {             explodeHearts()         }     }          private func startHeartsAnimation() {         timer = Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { _ in             let size = CGFloat.random(in: 20...50)             let heart = Heart(                 position: CGPoint(x: CGFloat.random(in: 0...UIScreen.main.bounds.width), y: -size),                 color: Color(red: Double.random(in: 0.7...1), green: Double.random(in: 0.2...0.5), blue: Double.random(in: 0.4...0.7)),                 size: size             )             hearts.append(heart)                          DispatchQueue.main.asyncAfter(deadline: .now() + 10) {                 if let index = hearts.firstIndex(where: { $0.id == heart.id }) {                     hearts.remove(at: index)                 }             }                          withAnimation(.linear(duration: 10)) {                 if let index = hearts.firstIndex(where: { $0.id == heart.id }) {                     hearts[index].position.y = UIScreen.main.bounds.height + size                 }             }         }     }          private func explodeHearts() {         for index in hearts.indices {             let angle = Double.random(in: 0..&lt;2 * .pi)             let distance = CGFloat.random(in: 100...300)             let newX = hearts[index].position.x + cos(angle) * distance             let newY = hearts[index].position.y + sin(angle) * distance                          withAnimation(.easeOut(duration: 0.5)) {                 hearts[index].position = CGPoint(x: newX, y: newY)                 hearts[index].isFlying = true             }                          DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {                 if let index = hearts.firstIndex(where: { $0.id == hearts[index].id }) {                     hearts.remove(at: index)                 }             }         }     } }  @main struct HeartAnimationApp: App {     var body: some Scene {         WindowGroup {             ContentView()         }     } }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<div class=\"floating-image\">\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/079\/49a\/afd\/07949aafd2a123362c5112ac03c8ebea.gif\" alt=\"DeepSeek \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438\" title=\"DeepSeek \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438\" width=\"544\" height=\"1120\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/079\/49a\/afd\/07949aafd2a123362c5112ac03c8ebea.gif\"\/><\/p>\n<div><figcaption>DeepSeek \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438<\/figcaption><\/div>\n<\/figure>\n<p>DeepSeek \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430 \u0432\u044b\u0434\u0430\u043b \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u043e\u0439\u043d\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e. \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0443.<\/p>\n<p>\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043c\u0438\u043d\u0443\u0441, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u044f \u043d\u0430\u0436\u0438\u043c\u0430\u044e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0438 \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u0440\u0430\u0437\u043b\u0435\u0442\u0430\u044e\u0442\u0441\u044f &#8212; \u043f\u0440\u0435\u0432\u044c\u044e \u043a\u0440\u0430\u0448\u0438\u0442\u0441\u044f.<\/p>\n<\/div>\n<p>\u042f \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u043f\u043e\u0431\u0435\u0434\u0438\u043b DeepSeek. \u041a \u043c\u043e\u0435\u043c\u0443 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044e, \u044f \u0431\u044b\u043b\u0430 \u0441\u043a\u0435\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430, \u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432 \u0438\u0445 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 &#8212; \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e DeepSeek \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u0443\u0441\u0442\u0443\u043f\u0430\u0435\u0442 ChatGPT, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0432 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043a\u043e\u0434\u0430. \u0418 \u0435\u0449\u0451 \u043d\u0430\u0434\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e DeepSeek \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0438 \u0431\u0435\u0437 \u0412\u041f\u041d \u0438 \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0438\u0447\u0435\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 \u043f\u043e\u0447\u0442\u044b.<\/p>\n<p>\u041a\u0442\u043e \u0435\u0449\u0451 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445, \u043f\u0438\u0448\u0438\u0442\u0435 \u043a\u0430\u043a \u0432\u0430\u043c?<\/p>\n<p><a href=\"https:\/\/t.me\/NataWakeUp\/617\" rel=\"noopener noreferrer nofollow\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u043a\u0430\u043d\u0430\u043b \u0441 \u0432\u0438\u0434\u0435\u043e<\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><\/p>\n<div class=\"tm-article-poll-container\"><!--[--><\/p>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/878060\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">\u041a\u0430\u043a \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0435, \u043a\u0430\u043a\u0430\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u043b\u0443\u0447\u0448\u0435<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">9.7% <\/span><span class=\"tm-article-poll__answer-label\">ChatGPT<\/span><span class=\"tm-article-poll__answer-votes\">35<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 9.7%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">90.3% <\/span><span class=\"tm-article-poll__answer-label\">DeepSeek<\/span><span class=\"tm-article-poll__answer-votes\">326<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 90.3%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b 361 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 133 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. <\/div>\n<p><!--]--><\/div>\n<p><!--]--><\/div>\n<p> \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\/articles\/878060\/\"> https:\/\/habr.com\/ru\/articles\/878060\/<\/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 article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0411\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0439 &#8212; \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0434\u0432\u0430 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 SwiftUI \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u043c, \u043a\u0430\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043b\u0443\u0447\u0448\u0435 \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0441 \u044d\u0442\u0438\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438.<\/p>\n<p>\u042f \u0440\u0435\u0448\u0438\u043b\u0430 \u0434\u0430\u0442\u044c \u0434\u0432\u0430 \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e: \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0433\u0440\u0443 &#171;\u0417\u043c\u0435\u0439\u043a\u0430&#187;, \u0432\u043e\u0442 \u043c\u043e\u0439 \u043f\u0440\u043e\u043c\u043f\u0442:<\/p>\n<blockquote>\n<p>\u041d\u0430\u043f\u0438\u0448\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441 \u043d\u0443\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 SwiftUI. \u0412 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d. \u0421\u0434\u0435\u043b\u0430\u0439 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438\u0433\u0440\u044b \u0437\u043c\u0435\u0439\u043a\u0430. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0435\u043b\u0435\u043d\u0430\u044f \u0437\u043c\u0435\u044f \u0438\u0437 3-\u0445 \u043a\u0432\u0430\u0440\u0430\u0442\u0438\u043a\u043e\u0432, \u043f\u043e \u043c\u0435\u0440\u0435 \u0441\u044a\u0435\u0434\u0430\u043d\u0438\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u043a\u0430 \u043e\u043d\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 1 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 (\u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u0441\u044a\u0435\u0434\u0430\u0435\u0442 &#8212; \u0440\u0430\u0437\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432)<\/p>\n<\/blockquote>\n<p><span class=\"habrahidden\">\u0415\u0441\u043b\u0438 \u043b\u0435\u043d\u044c \u0447\u0438\u0442\u0430\u0442\u044c &#8212; \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0438\u0434\u0435\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f (\u0432 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u043a\u0430\u043d\u0430\u043b\u0435).<\/span><\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u043b ChatGPT:<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442 ChatGPT<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0412\u043e\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0439 \u0438\u0433\u0440\u044b \u00ab\u0417\u043c\u0435\u0439\u043a\u0430\u00bb \u043d\u0430 SwiftUI. \u0417\u043c\u0435\u044f \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0441 \u0434\u043b\u0438\u043d\u043e\u0439 \u0432 3 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0438 \u0440\u0430\u0441\u0442\u0451\u0442 \u043f\u0440\u0438 \u043f\u043e\u0435\u0434\u0430\u043d\u0438\u0438 \u0435\u0434\u044b \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u0432\u0430\u0439\u043f\u0430\u043c\u0438.<\/p>\n<pre><code class=\"swift\">import SwiftUI  struct SnakeGameView: View {     @State private var snake: [CGPoint] = [CGPoint(x: 100, y: 100), CGPoint(x: 80, y: 100), CGPoint(x: 60, y: 100)]     @State private var food: CGPoint = CGPoint(x: 200, y: 200)     @State private var direction: CGPoint = CGPoint(x: 20, y: 0)     @State private var timer = Timer.publish(every: 0.2, on: .main, in: .common).autoconnect()          let gridSize: CGFloat = 20     let colors: [Color] = [.red, .blue, .yellow, .purple, .orange]          var body: some View {         ZStack {             Color.black.ignoresSafeArea()                          ForEach(snake.indices, id: \\..self) { index in                 Rectangle()                     .fill(Color.green)                     .frame(width: gridSize, height: gridSize)                     .position(snake[index])             }                          Rectangle()                 .fill(colors.randomElement()!)                 .frame(width: gridSize, height: gridSize)                 .position(food)         }         .gesture(DragGesture()             .onEnded { gesture in                 let xMove = gesture.translation.width                 let yMove = gesture.translation.height                                  if abs(xMove) &gt; abs(yMove) {                     direction = xMove &gt; 0 ? CGPoint(x: gridSize, y: 0) : CGPoint(x: -gridSize, y: 0)                 } else {                     direction = yMove &gt; 0 ? CGPoint(x: 0, y: gridSize) : CGPoint(x: 0, y: -gridSize)                 }             }         )         .onReceive(timer) { _ in             moveSnake()         }     }          private func moveSnake() {         var newHead = snake.first!         newHead.x += direction.x         newHead.y += direction.y                  if newHead == food {             snake.insert(newHead, at: 0)             food = generateNewFood()         } else {             snake.insert(newHead, at: 0)             snake.removeLast()         }     }          private func generateNewFood() -&gt; CGPoint {         let x = CGFloat(Int.random(in: 0..&lt;Int(UIScreen.main.bounds.width \/ gridSize))) * gridSize         let y = CGFloat(Int.random(in: 0..&lt;Int(UIScreen.main.bounds.height \/ gridSize))) * gridSize         return CGPoint(x: x, y: y)     } }  struct ContentView: View {     var body: some View {         SnakeGameView()     } }  @main struct SnakeGameApp: App {     var body: some Scene {         WindowGroup {             ContentView()         }     } }<\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0443\u044e \u0437\u043c\u0435\u0439\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u0430\u0439\u043f\u0430\u043c\u0438. \u041a\u043e\u0433\u0434\u0430 \u0437\u043c\u0435\u044f \u0441\u044a\u0435\u0434\u0430\u0435\u0442 \u0435\u0434\u0443, \u043e\u043d\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u043b\u0438\u043d\u0435, \u0430 \u0435\u0434\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u043c\u0435\u043d\u044f\u0435\u0442 \u0446\u0432\u0435\u0442. \u0418\u0433\u0440\u0430 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u0430, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0435 \u0441 \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438 \u0438\u043b\u0438 \u0441\u0430\u043c\u043e\u0439 \u0441\u043e\u0431\u043e\u0439 \u0434\u043b\u044f \u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u0438\u044f. \ud83d\ude80<\/p>\n<\/div>\n<\/details>\n<p>\u0418 \u0432\u043e\u0442 \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438:<\/p>\n<div class=\"floating-image\">\n<figure class=\"float full-width\">\n<div><figcaption>ChatGPT \u0437\u043c\u0435\u0439\u043a\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c, \u0432\u0441\u0451 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e, \u043a\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430. \u0415\u0441\u0442\u044c \u043d\u0435\u0434\u043e\u0447\u0435\u0442\u044b, \u0447\u0442\u043e \u0437\u043c\u0435\u0439\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0443\u0439\u0442\u0438 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u044d\u043a\u0440\u0430\u043d\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440. \u041d\u043e \u0434\u043b\u044f \u0431\u0430\u0437\u044b \u0441\u043e\u0439\u0434\u0451\u0442.<\/p>\n<\/div>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043f\u0440\u043e\u043c\u043f\u0442 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 DeepSeek, \u0432\u043e\u0442 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442 DeepSeek<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438\u0433\u0440\u044b &#171;\u0417\u043c\u0435\u0439\u043a\u0430&#187; \u043d\u0430 SwiftUI. \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u043c\u0435\u0439\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u044d\u043a\u0440\u0430\u043d\u0443 \u0438 &#171;\u0441\u044a\u0435\u0434\u0430\u0442\u044c&#187; \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0438\u043a\u0438, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044f\u0441\u044c \u0432 \u0434\u043b\u0438\u043d\u0443.<\/p>\n<h4>\u0428\u0430\u0433\u0438 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/h4>\n<ol>\n<li>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u043b\u044f \u0437\u043c\u0435\u0439\u043a\u0438 \u0438 \u0435\u0434\u044b.<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043b\u043e\u0433\u0438\u043a\u0443 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0437\u043c\u0435\u0439\u043a\u0438.<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043a\u0430\u0441\u0430\u043d\u0438\u0439 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u043c\u0435\u0439\u043a\u043e\u0439.<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0442\u0440\u0438\u0441\u0443\u0435\u043c \u0437\u043c\u0435\u0439\u043a\u0443 \u0438 \u0435\u0434\u0443 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435.<\/strong><\/p>\n<\/li>\n<\/ol>\n<h4>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/h4>\n<pre><code class=\"swift\">import SwiftUI  struct ContentView: View {     @State private var snake: [CGPoint] = [         CGPoint(x: 100, y: 100),         CGPoint(x: 90, y: 100),         CGPoint(x: 80, y: 100)     ]     @State private var food: CGPoint = CGPoint(x: 200, y: 200)     @State private var direction: CGPoint = CGPoint(x: 10, y: 0)     @State private var foodColor: Color = .red     @State private var score: Int = 0          let timer = Timer.publish(every: 0.1, on: .main, in: .common).autoconnect()          var body: some View {         ZStack {             Color.black.edgesIgnoringSafeArea(.all)                          \/\/ \u0420\u0438\u0441\u0443\u0435\u043c \u0437\u043c\u0435\u0439\u043a\u0443             ForEach(snake, id: \\.self) { segment in                 Rectangle()                     .fill(Color.green)                     .frame(width: 10, height: 10)                     .position(segment)             }                          \/\/ \u0420\u0438\u0441\u0443\u0435\u043c \u0435\u0434\u0443             Rectangle()                 .fill(foodColor)                 .frame(width: 10, height: 10)                 .position(food)                          \/\/ \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u0441\u0447\u0435\u0442             Text(\"Score: \\(score)\")                 .foregroundColor(.white)                 .font(.largeTitle)                 .padding()         }         .onReceive(timer) { _ in             moveSnake()         }         .gesture(             DragGesture()                 .onEnded { gesture in                     let delta = gesture.translation                     if abs(delta.width) &gt; abs(delta.height) {                         \/\/ \u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0432\u0430\u0439\u043f                         if delta.width &gt; 0 {                             direction = CGPoint(x: 10, y: 0) \/\/ \u0412\u043f\u0440\u0430\u0432\u043e                         } else {                             direction = CGPoint(x: -10, y: 0) \/\/ \u0412\u043b\u0435\u0432\u043e                         }                     } else {                         \/\/ \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0432\u0430\u0439\u043f                         if delta.height &gt; 0 {                             direction = CGPoint(x: 0, y: 10) \/\/ \u0412\u043d\u0438\u0437                         } else {                             direction = CGPoint(x: 0, y: -10) \/\/ \u0412\u0432\u0435\u0440\u0445                         }                     }                 }         )     }          func moveSnake() {         var newSnake = snake         let head = newSnake[0]                  \/\/ \u041d\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0433\u043e\u043b\u043e\u0432\u044b         let newHead = CGPoint(x: head.x + direction.x, y: head.y + direction.y)                  \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0441\u044a\u0435\u043b\u0430 \u043b\u0438 \u0437\u043c\u0435\u0439\u043a\u0430 \u0435\u0434\u0443         if abs(newHead.x - food.x) &lt; 10 &amp;&amp; abs(newHead.y - food.y) &lt; 10 {             score += 1             generateFood()         } else {             newSnake.removeLast()         }                  newSnake.insert(newHead, at: 0)         snake = newSnake     }          func generateFood() {         let maxX = UIScreen.main.bounds.width - 10         let maxY = UIScreen.main.bounds.height - 10                  food = CGPoint(             x: CGFloat.random(in: 0...maxX),             y: CGFloat.random(in: 0...maxY)         )                  foodColor = Color(             red: Double.random(in: 0...1),             green: Double.random(in: 0...1),             blue: Double.random(in: 0...1)         )     } }  @main struct SnakeApp: App {     var body: some Scene {         WindowGroup {             ContentView()         }     } }<\/code><\/pre>\n<h4>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430:<\/h4>\n<ol>\n<li>\n<p><strong>\u0417\u043c\u0435\u0439\u043a\u0430 \u0438 \u0435\u0434\u0430:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0417\u043c\u0435\u0439\u043a\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c\u00a0<code>CGPoint<\/code>, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u2014 \u044d\u0442\u043e \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430 \u0437\u043c\u0435\u0439\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0434\u0430 \u2014 \u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u0435\u043d\u044f\u0435\u0442 \u0446\u0432\u0435\u0442 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0437\u043c\u0435\u0439\u043a\u0438:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0417\u043c\u0435\u0439\u043a\u0430 \u0434\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044f \u0441\u0432\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u044b\u0435 0.1 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0437\u043c\u0435\u0439\u043a\u0430 &#171;\u0441\u044a\u0435\u0434\u0430\u0435\u0442&#187; \u0435\u0434\u0443, \u0435\u0435 \u0434\u043b\u0438\u043d\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u0441\u0435\u0433\u043c\u0435\u043d\u0442, \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u0435\u0434\u0430.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u0432\u0430\u0439\u043f\u0430\u0435\u0442 \u0432\u043f\u0440\u0430\u0432\u043e,\u00a0\u0437\u043c\u0435\u0439\u043a\u0430 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043f\u0440\u0430\u0432\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0441\u0432\u0430\u0439\u043f\u0430\u0435\u0442 \u0432\u043b\u0435\u0432\u043e, \u0437\u043c\u0435\u0439\u043a\u0430 \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043b\u0435\u0432\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u0441\u0432\u0430\u0439\u043f\u043e\u0432 \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043d\u0438\u0437.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0417\u043c\u0435\u0439\u043a\u0430 \u0438 \u0435\u0434\u0430 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>Rectangle<\/code>\u00a0\u0432 SwiftUI.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4>\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c:<\/h4>\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 \u0432 Xcode \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c SwiftUI.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430\u00a0<code>ContentView.swift<\/code>\u00a0\u043d\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043a\u043e\u0434.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 \u0438\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.<\/p>\n<\/li>\n<\/ol>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u0433\u0440\u044b &#171;\u0417\u043c\u0435\u0439\u043a\u0430&#187; \u043d\u0430 SwiftUI!<\/p>\n<\/div>\n<\/details>\n<div class=\"floating-image\">\n<figure class=\"float full-width\">\n<div><figcaption>DeepSeek \u0437\u043c\u0435\u0439\u043a\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0427\u0442\u043e \u0442\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e: \u0437\u043c\u0435\u0439\u043a\u0430 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c \u0441\u0438\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0447\u0443\u0442\u044c \u0432\u044b\u0448\u0435. \u041f\u0440\u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435, DeepSeek \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043e\u0442 \u0441\u0435\u0431\u044f \u043b\u0435\u0439\u0431\u043b \u0441 \u043f\u043e\u0434\u0441\u0447\u0451\u0442\u043e\u043c \u043e\u0447\u043a\u043e\u0432. \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0437\u043c\u0435\u0439\u043a\u0430 \u0443\u0445\u043e\u0434\u0438\u0442 \u0437\u0430 \u0440\u0430\u043c\u043a\u0438 \u044d\u043a\u0440\u0430\u043d\u0430 \u0438 \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f. <\/p>\n<p>\u0418 \u043a\u0441\u0442\u0430\u0442\u0438, \u044f \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0430, \u043a\u0430\u043a\u0438\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0431\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0432\u0430\u0439\u043f\u0443 (\u044d\u0442\u043e \u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043d\u043e \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043c\u043d\u043e\u0433\u043e: \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438, \u0433\u0438\u0440\u043e\u0441\u043a\u043e\u043f \u0438 \u043f\u0440.)<\/p>\n<\/div>\n<p>\u0421\u0447\u0438\u0442\u0430\u044e \u0447\u0442\u043e \u0441 \u043f\u0435\u0440\u0432\u044b\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0435\u043c \u043e\u0431\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c. \u0421\u0447\u0451\u0442 1:1.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432 \u043f\u0440\u0435\u0434\u0434\u0432\u0435\u0440\u0438\u0438 14 \u0444\u0435\u0432\u0440\u0430\u043b\u044f \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u0443\u0434\u0430\u0440\u0438\u043b\u0438 \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0431\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0443\u044e \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e. \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0431\u044b\u043b \u043f\u0440\u043e\u043c\u043f\u0442:<\/p>\n<blockquote>\n<p>\u041d\u0430\u043f\u0438\u0448\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441 \u043d\u0443\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 SwiftUI. \u0412 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d. \u041d\u0430 \u043d\u0451\u043c \u043d\u0430 \u0442\u0451\u043c\u043d\u043e\u043c \u0444\u043e\u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f:<\/p>\n<p>\u0421\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u043f\u043b\u0430\u0432\u043d\u043e \u043f\u0430\u0434\u0430\u044e\u0442 \u0441\u0432\u0435\u0440\u0445\u0443 \u044d\u043a\u0440\u0430\u043d\u0430, \u043d\u043e \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043f\u043e \u044d\u043a\u0440\u0430\u043d\u0443 \u043e\u043d\u0438 \u0440\u0430\u0437\u043b\u0435\u0442\u0430\u044e\u0442\u0441\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u044b. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044f\u0440\u043a\u043e \u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0421\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u0442\u0442\u0435\u043d\u043a\u043e\u0432 \u0440\u043e\u0437\u043e\u0432\u043e\u0433\u043e \u0438 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430.<\/p>\n<\/blockquote>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441 ChatGPT. \u0412\u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u0442\u0432\u0435\u0442 ChatGPT<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0412\u043e\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 SwiftUI, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u044d\u0444\u0444\u0435\u043a\u0442 \u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0445 \u0441\u0435\u0440\u0434\u0435\u0447\u0435\u043a \u0441 \u0440\u0430\u0437\u043b\u0435\u0442\u043e\u043c \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435.<\/p>\n<p><strong>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434?<\/strong><\/p>\n<p>\u2022\u00a0<strong>\u0421\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u043f\u0430\u0434\u0430\u044e\u0442 \u0441\u0432\u0435\u0440\u0445\u0443<\/strong>\u00a0\u044d\u043a\u0440\u0430\u043d\u0430 \u0441 \u0440\u0430\u0437\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c.<\/p>\n<p>\u2022\u00a0<strong>\u041a\u043b\u0438\u043a \u043f\u043e \u044d\u043a\u0440\u0430\u043d\u0443<\/strong>\u00a0\u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0435\u0440\u0434\u0435\u0447\u043a\u0438 \u0440\u0430\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u0441\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<\/p>\n<p>\u2022\u00a0<strong>\u0420\u0430\u0437\u043d\u044b\u0435 \u043e\u0442\u0442\u0435\u043d\u043a\u0438 \u0440\u043e\u0437\u043e\u0432\u043e\u0433\u043e<\/strong>\u00a0\u0438\u00a0<strong>\u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0441\u0435\u0440\u0434\u0435\u0447\u0435\u043a<\/strong>\u00a0\u0434\u0435\u043b\u0430\u044e\u0442 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439.<\/p>\n<pre><code class=\"swift\">import SwiftUI  struct Heart: Identifiable {     let id = UUID()     var position: CGPoint     var size: CGFloat     var color: Color     var velocity: CGFloat }  struct ContentView: View {     @State private var hearts: [Heart] = []     @State private var explode = false     let screenWidth =<\/code><\/pre>\n<\/div>\n<\/details>\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-446629","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/446629","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=446629"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/446629\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=446629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=446629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=446629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}