SwiftUI Tutorial: Simulating Realtime Physics
Автор: Get Swifty
Загружено: 2022-01-06
Просмотров: 2393
A SwiftUI tutorial showing you how to use realtime physics simulation in SwiftUI. Today we create the weird stretchy dangly rope thingy. Seriously. It's fun.
We implement gravity, elasticity and chaos!
You can view the code here:
https://github.com/BeauNouvelle/RopeS...
Or follow along with the video and learn how to build it yourself!
00:00 Intro
00:31 Plan like a Programmer
02:32 New Project
02:40 Helper Methods
05:51 Model Objects
05:56 Rope
06:40 Node
07:30 Stick
08:40 Model Cleanup
08:50 Timer / Update Loop explanation
10:47 Reset Method
11:03 Update Loop
13:36 Views
13:57 StickView
14:37 NodeView
15:03 ContentView
17:12 Gestures
18:45 Toolbar
19:35 Oops! Scheduled Timer Fix!
20:00 Running the simulation
20:11 Outro
---------------------
Want to chat or ask questions about Swift or a career in software development?
Discord
/ discord
Patreon - Get my book and code created on this channel!
/ beaunouvelle
Play tabletop games? I made a music and sound effects app for you called Summoning Stone.
https://apps.apple.com/app/apple-stor...
------------------
#swiftui #iosdeveloper #swiftuitutorial
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: