SwiftUI Tutorial: Superior Activity Indicators - Modifier Extraction and Improved Masking
Автор: CodeSlicing
Загружено: 2021-09-18
Просмотров: 309
SwiftUI Tutorial: Superior Activity Indicators - Modifier Extraction and Improved Masking
In this episode we’re going to take the advanced approach we looked at in the last episode and extract it into a modifier and then look at how we can use that to improve the use of masks to create activity indicators that lack rotational symmetry - or pretty much anything!
Source code:
https://gist.github.com/CodeSlicing/3...
https://gist.github.com/CodeSlicing/c...
Native source code:
https://gist.github.com/CodeSlicing/6...
https://gist.github.com/CodeSlicing/4...
================
PureSwiftUI is a free Swift Package that includes a multitude of useful extensions and properties to make your life easier with SwiftUI resulting in cleaner code that takes less time to write.
It's a huge time-saver so I do encourage you to check it out.
You can get PureSwiftUI here:
https://github.com/CodeSlicing/pure-s...
If you want to ask me a question or follow me for updates, you can do so on Twitter:
/ codeslice
FAQs:
Q: What are the code callouts I sometimes see in the code?:
A: I code in SwiftUI using the PureSwiftUI framework since I created it to make code more concise and easier to read. However, I understand that not everyone wants to install a swift package (although, you'd be mad not to ;o)) so unless otherwise stated, the popups will detail the native SwiftUI equivalent of the code in question.
Q: What's that theme you're using?
A: It’s a modified version of MoodNight v2. If you like it, you can download the theme here:
https://github.com/CodeSlicing/codesl...
Q: Why do you use a harness structure rather than the default preview provider
A: Please take a look at this video for a detailed explanation: • SwiftUI Quick Tips: Power-Up Your Previews

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: