Best of SwiftUI โ€” 2024

  1. 1
    Article
    Avatar of devswiftlyDev Swiftlyยท2y

    Infinite scrolling from Paginated JSON Response

    Learn how to implement infinite scrolling in SwiftUI using a paginated JSON response. The guide covers generating dummy data with Express JS and creating models, view models, and views in SwiftUI to manage data fetching and display with infinite scroll functionality.

  2. 2
    Article
    Avatar of devswiftlyDev Swiftlyยท2y

    Infinite scrolling in SwiftUI

    Learn how to implement infinite scrolling in SwiftUI by utilizing the onAppear modifier to detect when the last item in the list becomes visible, triggering the loading of more items.

  3. 3
    Article
    Avatar of alternativetoAlternativeToยท2y

    macOS clipboard manager Maccy has released a major 2.0 update with a complete rewrite

    Maccy, an open-source clipboard manager for macOS, has launched version 2.0 with a complete rewrite using modern Apple technology, requiring macOS 14 Sonoma or newer. It introduces a new user interface built with SwiftUI, upgrades storage to SwiftData, and provides several new features and enhancements over version 1.x while maintaining backward compatibility.

  4. 4
    Article
    Avatar of dockyardDockYardยท2y

    LiveView Native Is Here!

    LiveView Native v0.3 provides a framework for building native UI on multiple devices using the LiveView programming model. It reduces development and maintenance costs, allows for critical updates without app store delays, and can deploy to all Apple and Android devices. Unlike other frameworks, it wraps first-class UI frameworks like SwiftUI and Jetpack, ensuring optimal user experience on each device.

  5. 5
    Article
    Avatar of communityCommunity Picksยท2y

    realvjy/Cool-Loaders-SwiftUI: Cool loaders directly coded in SwiftUI from Figma

    Collection of cool loaders created directly in SwiftUI, with no dependency on Lottie Files or SVG. Includes one loader using Metal Shaders. Contribution invites are open, with specific need for fixing the Leaf loader's animation. Figma files are available for community access.

  6. 6
    Article
    Avatar of hackingwithswiftHacking with Swiftยท2y

    Whatโ€™s new in SwiftUI for iOS 18

    SwiftUI for iOS 18 introduces significant improvements, including new APIs for colors and gradients, better scrollview and tab management, and enhanced text rendering control. A major change shifts the @MainActor attribute to the whole View protocol, simplifying main actor isolation issues. However, some usability gaps remain, such as the lack of WebKit integration, challenging keychain management, limited remote image control, and missing rich text support in TextEditor.

  7. 7
    Article
    Avatar of appcodaAppcodaยท2y

    Whatโ€™s New in SwiftUI for iOS 18

    The iOS 18 update introduces significant enhancements to SwiftUI, including a floating tab bar, improved sheet presentation sizing, support for colorful mesh gradients, built-in support for zoom transition, more animations for SF Symbols 6, enhancements of SwiftUI Charts, more control of scroll views, widgets in Control Center, a new mix modifier for color blending, and visual effects for text.

  8. 8
    Article
    Avatar of verygoodventuresVery Good Venturesยท1y

    Why Learn SwiftUI as a Flutter Developer?

    Flutter offers many advantages, but it doesn't cover all edge cases, especially with the evolving features of iOS, iPadOS, and macOS. Developers might need to write native code in Swift to leverage features like watchOS, Siri Shortcuts, App Clips, widgets, and Live Activities. Swift and Dart have similarities, making the transition smoother. Moreover, SwiftUIโ€”the reactive UI framework for Swiftโ€”shares similarities with Flutter's widgets, facilitating easier integration. Learning SwiftUI can enhance the user experience on Apple platforms without moving entirely away from Flutter.

  9. 9
    Article
    Avatar of appledevApple Developerยท2y

    WWDC24 highlights

    Browse the biggest moments from WWDC24, learn about new features in Swift, design for visionOS, improve privacy, optimize for the spatial web, accessibility in SwiftUI, build Lock Screen camera capture experience, explore enterprise APIs for visionOS, and utilize HealthKit APIs.

  10. 10
    Article
    Avatar of devswiftlyDev Swiftlyยท2y

    Essential SwiftUI Concepts: A Complete Study Guide for Beginners

    A comprehensive guide for beginners to understand essential SwiftUI views and containers. It covers basic views like Text, Image, and Button, as well as layout views such as HStack, VStack, and ZStack. The guide also includes containers and controls, layout support & utility views, modifiers & effects, advanced views like Map and VideoPlayer, utility & support views, gesture handling & interaction, state management, environment customization, accessibility, Combine integration for data flow, and additional debugging & preview features. The information is designed to help developers build flexible and sophisticated user interfaces with SwiftUI.

  11. 11
    Video
    Avatar of seanallenSean Allenยท2y

    SwiftUI - Support Prior iOS Versions - Backward Compatibility - #available

    Learn how to maintain backward compatibility in SwiftUI applications while utilizing new features introduced in iOS 18. The post provides a step-by-step guide on using the #available directive to conditionally apply updates for different iOS versions, ensuring functionality across versions as old as iOS 14. It includes practical examples and suggestions for managing UI elements and modifiers based on iOS version checks.

  12. 12
    Article
    Avatar of communityCommunity Picksยท2y

    Godot on iPad, Toolbars, Importers, Embedding, Debugger

    The post provides a detailed update on the progress of porting Godot to the iPad, including the influence of Final Cut Pro on UI design. Improvements made include new property editors, embedded controls, and redesigned toolbars and importers for a better touch experience. The author also mentions plans for further enhancements like integrating Apple Pencil support and addressing small bugs before launching a TestFlight beta.

  13. 13
    Article
    Avatar of medium_jsMediumยท2y

    SwiftUI and Jetpack Compose for Developers

    This post compares SwiftUI and Jetpack Compose for mobile app development. It covers topics such as the language, UI components, local storage, network/HTTP request, navigation, database/offline storage, IDE, community support, sample apps, and the learning curve.

  14. 14
    Article
    Avatar of flutterflyFlutterflyยท2y

    ๐Ÿš€ ๐—™๐—น๐˜‚๐˜๐˜๐—ฒ๐—ฟ vs ๐—ฆ๐˜„๐—ถ๐—ณ๐˜๐—จ๐—œ: Similarities, Differences, and Cross-Skilling ๐Ÿš€

    Flutter and SwiftUI are popular frameworks for mobile development that share similarities like declarative UI patterns, hot reload features, and composable widgets. Key differences include platform support, with Flutter being cross-platform and SwiftUI limited to Apple ecosystems, as well as the use of Dart for Flutter and Swift for SwiftUI. Developers transitioning between the two can leverage their existing knowledge of declarative patterns, state management, and syntax to ease the learning process.

  15. 15
    Article
    Avatar of devswiftlyDev Swiftlyยท2y

    Simple Quiz App in SwiftUI

    This post provides a basic example of a quiz app using SwiftUI. The app presents one question at a time, allows users to select an answer, and displays whether the answer is correct. It tracks the user's score and gives an option to restart the quiz. The implementation includes a Question model, a QuizManager to manage quiz logic, and a ContentView for the UI.

  16. 16
    Article
    Avatar of devswiftlyDev Swiftlyยท2y

    Write Your First MacOS App Using SwiftUI

    Learn how to create a note-taking app for MacOS using SwiftUI and Xcode. The guide includes setting up the project, creating a note model, displaying notes in a list view, and adding functionality to add new notes. Additionally, it touches on the need for data persistence and suggests using CoreData or similar solutions.

  17. 17
    Article
    Avatar of swiftwithmajidSwift with Majidยท1y

    The power of previews in Xcode

    Discover the enhanced capabilities of previews in Xcode, especially with the recent updates in Xcode 16. Using the Previewable macro type, you can now simplify state definition within the Preview macro, reducing clutter in your codebase. Additionally, the PreviewModifier protocol allows for the creation of reusable preview environments, significantly improving performance and efficiency when previewing multiple instances with shared traits.

  18. 18
    Video
    Avatar of vpradeillesVincent Pradeillesยท1y

    Don't write this code! (use a Swift Regex instead ๐Ÿ˜Œ)

    Regular expressions in Swift have been simplified and made safer with a new syntax introduced in iOS 16. The older NSRegularExpression API from Objective-C was verbose and exception-prone. The new Swift regex syntax offers compile-time checks and easier string capture via tuples. A regex builder syntax is also available for complex expressions.

  19. 19
    Article
    Avatar of appcodaAppcodaยท2y

    Using Translation API in Swift and SwiftUI

    iOS 17.4 introduces a powerful Translation API for developers to integrate translation capabilities into their apps. This involves two primary methods: using the `.translationPresentation` modifier for a simple translation overlay and calling the Translation API directly for more customizable translations. The tutorial guides through both methods with sample code, showing how to implement translation features in a SwiftUI demo app.