🚀 Devs, time to ditch CocoaPods for Swift Package Manager (SPM). Stream Chat is SPM-ready, and so should you be: - Run cocoapods-deintegrate to clean up. - Add dependencies directly in Xcode using SPM. 🔗: https://lnkd.in/g8PgsAWW
Stream’s Post
More Relevant Posts
-
🛠️ New technical blog post: How to automatically compile and distribute your iOS SDK as a pre-compiled xcframework. We go into the depths and best practices of - Working efficiently on a commercial SDK in a larger team - How to compile and distribute your iOS SDK as a pre-compiled xcframework automatically https://lnkd.in/djzknn_z
How to automatically compile and distribute your iOS SDK as a pre-compiled xcframework
contextsdk.com
To view or add a comment, sign in
-
🚀 Mastering the Singleton Pattern in Swift: Best Practices & Use Cases 🚀 In the world of iOS development, the Singleton pattern is a powerful tool when used wisely. It's a design pattern that restricts the instantiation of a class to one single instance and provides a global point of access to that instance. While it's incredibly useful for managing shared resources like network managers, data caches, or app settings, it's also a pattern that needs to be handled with care. 🔑 Key Benefits: Global Access: Singleton provides a single point of access to the instance, making it easy to share resources. Lazy Initialization: The Singleton instance is created only when needed, optimizing memory usage. Thread Safety: Proper implementation ensures thread safety, preventing unexpected behavior in a multi-threaded environment. 🛠️ Best Practices: Use Singletons sparingly to avoid creating "God objects" that know too much and do too much. Ensure thread safety by using constructs like DispatchQueue or lazy var in Swift. Be mindful of testing implications, as Singletons can make unit testing challenging. Consider dependency injection where possible. 💡 Common Use Cases: Network Managers: Managing API calls across your app. App Configuration: Storing global settings that need to be accessed throughout the app. Session Managers: Handling user sessions and authentication states. Remember, with great power comes great responsibility! Use the Singleton pattern wisely to create efficient and maintainable code. 💻✨ #iOSDevelopment #Swift #DesignPatterns #SingletonPattern #MobileDevelopment
To view or add a comment, sign in
-
-
🚀 Migrating to Swift 6: Seeking Guidance from the iOS Dev Community 🚀 Hey iOS developers! 👋 I’m currently in the process of migrating a large-scale project to Swift 6 and I’m facing some important design challenges. I want to make sure I handle concurrency, thread safety, and modularization efficiently. Here are a few areas where I’d love to hear your insights: Actors vs Main Actor: Should I convert all my classes to Actor types to ensure isolation? In what cases would you prefer to use @MainActor for UI-bound classes? Sendable Protocol: How are you incorporating the Sendable protocol into your projects for thread safety? Any practical tips or patterns for retrofitting existing code with Sendable and ensuring it works across all modules? Concurrency Patterns: What concurrency patterns have worked best for you when migrating legacy codebases to Swift 6? Any potential pitfalls or lessons learned from your own experience that you'd like to share? I’d appreciate any advice, examples, or resources that can help ensure this migration is both smooth and scalable. Thanks in advance for sharing your expertise! #iOS #Swift6 #Concurrency #Actors #Sendable #ThreadSafety #MobileDev #iOSCommunity
To view or add a comment, sign in
-
Getting started with iOS development using SwiftUI 😎. SwiftUI has really cool features and components, making it fun to work with. Check out repo: https://lnkd.in/dzVk3TwB Swift UI course: https://lnkd.in/dECwZkqK #iOSDevelopment #SwiftUI #SwiftProgramming #MobileDevelopment #AppDevelopment #100DaysOfSwiftUI
To view or add a comment, sign in
-
-
iOS developers, do you also run away from Unit Testing? Most of the developers hesitate to write unit tests because they consider unit testing a time consuming task that makes the development cycle slower. But the reality is quite opposite. Checkout my latest blog which dives into XCTest framework. You will not only learn how to write unit tests in Xcode but will also deep dive into the implementation with a sample SwiftUI project. ⭐️ https://lnkd.in/gsjRFJMD This blog covers: 🔺 What are Unit Tests in Swift 🔺 How to setup Unit Test target in Xcode 🔺 Unit Testing Example 🔺 How to write Unit Tests in Swift 🔺 How to run Unit Tests in Xcode 🔺 Unit Tests Code Coverage #iosdevelopers #iosdevelopment #swiftui
To view or add a comment, sign in
-
-
Senior iOS Developer at Tutu | Mobile | Swift | SwiftUI | Software Engineer | App Development | QA | TravelTech | FinTech
Async in Swift can change you're life as an iOS developer. 🚀 Here's why it's a game-changer: 1. Readability: Linear code execution 📖 2. Simplicity: No more callback hell 🎉 3. Error handling: Try-catch instead of Result types 🛠️ 4. Performance: Improved concurrency management ⚡ I refactored our app's network layer using async/await. 🔄 Result? 25% reduction in code complexity. 📉 But the real magic? ✨ Onboarding new devs became a breeze. 🌬️ They grasp our codebase in half the time now. ⏱️ Async isn't just syntax sugar. It's a productivity booster. 💪 Wanna know more? Just read this great article from SwiftLee https://lnkd.in/e_Qc_-9r #iOSDevelopment #SwiftProgramming #AsyncAwait #MobileDevelopment
To view or add a comment, sign in
-
🛑 This is a pattern I really don't like and that unfortunately is/was used extensively in iOS development. Setting up classes from Xcode's UI and then hoping that the magic that executes behind the scenes finds it. It is so hard to debug cases where the code doesn't execute 😭 This specific use case is a migration that requires some custom logic through a Migration Policy subclass. 👀 If you want to learn more about it, check out this article on my blog: https://lnkd.in/dmDeA6XY
To view or add a comment, sign in
-
-
Attention iOS developers! I've just published a new blog post on a topic that will surely interest you: the most common bug when migrating to SceneDelegates and how you can save yourself the associated headache. 💡 Don't miss this key tip to optimise your iOS projects - go and check it out right now! #iOSDev #SceneDelegates #iOSDevelopment #ProgrammingTips #Optimisation #TimeIsMoney 📱💻
SceneDelegate Migration Issues
victorcarreras.dev
To view or add a comment, sign in
-
Ever struggled with SwiftUI modifiers that require higher iOS versions? 🤔 While working on iOS projects that support iOS 14, I faced a recurring issue: many famous SwiftUI modifiers require higher iOS versions. Instead of repeatedly adding conditional checks, I decided to create custom modifiers that handle deprecation seamlessly. I'm excited to introduce SwiftUI Deprecation Handler 🚀, a GitHub repository filled with custom SwiftUI modifiers designed to handle deprecation seamlessly. Why use SwiftUI Deprecation Handler? ✅ Centralized Solutions: All custom modifiers stored in one place. 🌍 Open Source: Free for everyone to use and contribute. If you have ideas for new custom modifiers or improvements, please create an issue in the repository. Your contributions will help make this resource even more valuable for the iOS community. 🙌 🔗 Check out the repository here: https://lnkd.in/d3MKJxMg UPDATE: Check the new updated version https://lnkd.in/d6uvKq-m #SwiftUIDeprecationHandler #iOSDevelopment #Swift #SwiftUI
To view or add a comment, sign in
-
-
🚀 Excited to announce my latest course: Mastering Swift Concurrency! 🎉 Concurrency is a game-changer for iOS development, and is essential for building high quality apps. This course is designed to take your skills to the next level. Whether you're just starting out with Swift concurrency or looking to deepen your understanding, this course will guide you through the intricacies of async/await, structured concurrency, and more. Join me on this journey to becoming a concurrency pro! 🌟) #Swift #iOSDevelopment #Concurrency #SwiftConcurrency #OnlineLearning #AppStuff
Mastering Swift Concurrency
appstuff.teachable.com
To view or add a comment, sign in