Giter Club home page Giter Club logo

swiftui-bugs's Introduction

SwiftUI Issues, Limitations & Unknowns

With Apple's documentation for SwiftUI being limited, I wanted to create a central resource of all bugs, issues and limitations with SwiftUI.

Current Issues

  • Environment/observed objects lose data on list view change. This problem appear in case when parent view updated with same data in terms of hash. The bug is not appearing when the parent view updated with different data.
  • Tab view resets view and navigation stack
  • Modal views/sheets don't automatically have environment data
  • Context menu not showing on a custom view with resizable or geometry reader
    • ๐Ÿ”จ Example
    • ๐Ÿ“ FB7416520
  • Multiple buttons in a list row causes both buttons to be actioned upon when tapped
  • 'Tried to pop to a view controller that doesn't exist' crash
  • .minimumScaleFactor() is broken in WatchOS app: instead of scaling down, it just set to minimum
    • ๐Ÿ“ FB7408679
    • ๐Ÿ”จ Example

Limitations/Unknowns

  • No SwiftUI equivalent to UICollectionView
  • Scrollview with HStack and items have poor performance for large data sets (all child views are loaded on init).
    • ๐Ÿ“ FB7216618
  • Unable to remove or customise list separators
    • ๐Ÿ“ FB7108559
  • Unable to change navigation appearance for a single view
    • ๐Ÿ“ FB7310681
  • Unable to easily support deep linking for universal links or notifications
    • ๐Ÿ“ FB7408717
  • Unable to use a UISearchController with a SwiftUI view
    • ๐Ÿ”จ Example
    • ๐Ÿ“ FB7416329
  • Unable to remove a list item background altogether for one cell
    • ๐Ÿ“ FB7371374
  • Unable to know when view becomes active again (equivalent to viewDidAppear)
  • Unable to change status bar colour
  • @FetchRequest property wrapper doesn't support dynamic variable predicates

Please feel free to PR and submit examples, workarounds and/or fixes so I can keep this up to date.

swiftui-bugs's People

Contributors

ryangittings avatar pedrommcarrasco avatar mattyoung avatar

Stargazers

Chitvan Saxena avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.