Make a MacOS App from Start to Finish with SwiftUI - Screenshot app - PART 1

Make a MacOS App from Start to Finish with SwiftUI - Screenshot app - PART 1

21.256 Lượt nghe
Make a MacOS App from Start to Finish with SwiftUI - Screenshot app - PART 1
Start macOS app development in this SwiftUI tutorial where I guide you through creating a screenshot app from scratch. Learn how to leverage command line tools for powerful functionality, manage images with NSPasteboard, and enhance your app’s interface with SwiftUI’s LazyVGrid and drag-and-drop features. This is the first part of a series where you will learn about macos app develeopment. This series will equip you with the skills to build a native and polished macOS application. 🔹 What You’ll Learn: - How to use command line tools in SwiftUI. - Integrating screencapture for taking screenshots. - Managing images with NSPasteboard. - Creating a dynamic grid layout using LazyVGrid. - Implementing drag and drop functionality. - Handling different screenshot types with ease. 00:00 Introduction to the screenshot app project 04:44 Using command line tools 08:36 What can you build with command line tools 11:57 Taking screenshots in SwiftUI with screencapture 17:29 Getting the images from NSPastboard 20:40 Grid layout with LazyVGrid 24:27 Drag and drop images 26:37 Taking different types of screenshots 29:27 Wrap up If you want to publish an app with screen capture, make sure to add privacy settings. This is the guide from apple: https://developer.apple.com/documentation/avfoundation/capture_setup/requesting_authorization_to_capture_and_save_media If you liked what you learned and you want to see more, check out one of my courses! 👨‍💻 macOS Development with SwiftUI course https://learn.swiftyplace.com/macos-development-swiftui-course 👨‍💻 my Core Data and SwiftUI course https://learn.swiftyplace.com/swiftui-core-data-mastery-course ⬇️ Download project starter: https://github.com/gahntpo/ScreenshotApp/tree/main PART 2: https://youtu.be/oQL9nrzV_Ok #SwiftUI #macos