Jed Fox

Results 602 comments of Jed Fox

Looks like this is for Dynamic Type which can’t be accessed from the DOM IIRC. It’s definitely important to have something for responsiveness — I think those are `horizontalSizeClass` and...

What about a React-style API where you have an `@State` (or maybe a custom `@Ref`) binding which you add to a view then pass to `.ref()`? ```swift struct ContentView: View...

If we had some sort of [typed DOM access](https://github.com/swiftwasm/JavaScriptKit/issues/21), it could be implemented with `KeyPath`s. It would probably be good to have different handling of attributes (changed with `setAttribute`) and...

> most of the time it would be the `` content Since macOS already has the concept of a title for a window, shouldn’t we implement that API to enable...

I was looking Into making type-safe version of this (maybe something like `.margin(left: 2.em)` or something?) but it seemed like a lot of work. Maybe it could be generated automatically?

- https://developer.apple.com/tutorials/swiftui/creating-and-combining-views this is good because we can follow the tutorial and implement things needed for each step - https://developer.apple.com/documentation/swiftui/fruta_building_a_feature-rich_app_with_swiftui

Something to consider is whether the API should be top-level (specify your routes all at once in some sort of structure inside `App` or `Scene`) or more organic (like React...

> Static websites support? Hard to specify any requirements for that until we have static HTML rendering actually working. It would be pretty useful if there was a way to...

Inspiration: [Django](https://docs.djangoproject.com/en/3.0/topics/http/urls/), [React Router](https://reactrouter.com/web/guides/quick-start), [Vue Router](https://router.vuejs.org), [SwiftUI](https://github.com/frzi/SwiftUIRouter) (based on old react router api), [Flask](https://flask.palletsprojects.com/en/1.1.x/quickstart/#routing), [React Navigation](https://reactnavigation.org/docs/hello-react-navigation) (react native)

Some info on how to handle deep links in SwiftUI: https://medium.com/better-programming/deep-links-universal-links-and-the-swiftui-app-life-cycle-e98e38bcef6e, https://nalexn.github.io/swiftui-deep-linking/