SwiftUI

110 readers
2 users here now

SwiftUI helps you build great-looking apps across all Apple platforms with the power of Swift — and surprisingly little code.

This is a community for people that use SwiftUI, want to learn SwiftUI or want to show off their creations with SwiftUI.

Want to learn SwiftUI?

Try out Paul Hudson's free 100 Days of SwiftUI course


We expect a civil and constructive discourse in this community.

Piracy:

Bootstrapping:


Other communities on related topics

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

[email protected]

founded 1 year ago
MODERATORS
1
2
Electing new Mods (lemmy.world)
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
 

Don't have the time to support this at the moment. Should have done this earlier! Please comment if you are interested.

2
 
 

Any SwiftUI related projects/packages you’re working on?

Something you’d like to share or perhaps need help with?

Share it here!

3
 
 

Any SwiftUI related projects/packages you’re working on?

Something you’d like to share or perhaps need help with?

Share it here!


Aside:

Sorry for being late on this. Personal and professional developments had me taking a step back these past 30 days. Will be back to keeping things up to date moving forward.

4
 
 

So 3 things,

  1. A post will be created to poll the topics from the community on the theme/topic. Could be things like a photo album gallery or maybe something creative such as a piano roll that plays midi notes.

  2. At the top of the month, everyone has 2-3 weeks to build their project out. These have to be open-source. And the last week of the month, we all vote on the top picks and a pinned post will have links to the repos of all the contestants whom participated + the top 3 winners.

  3. Everyone is welcome to help each-other out, form teams, or simply handle their projects solo. BUT, you cannot use past projects in your solutions. Meaning, you can't simply integrate verbatim code from an existing repo or an entire solution that you previously created without good reason at least. Definitely, partial re-use is allowed.


I find that this could be an interesting opportunity to simply allow people share their work, introduce interesting solutions or simply learn from others if they are starting to learn SwiftUI.

5
 
 

Found this to be a really cool project for those in web development that were thinking about learning SwiftUI. And SwiftUI devs who want to attempt browser based solutions.

6
 
 

Any SwiftUI related projects/packages you’re working on?

Something you’d like to share or perhaps need help with?

Share it here!

7
2
Intro to Transactions (juniperphoton.substack.com)
submitted 1 year ago by [email protected] to c/[email protected]
8
2
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

This project is really amazing for rendering HLSStreams and video in general. Especially on SwiftUI.

It exposes the metal textures prior to rendering which you can also tweak if you wanted to add some layer of effects in between.

And honestly overall having the ability to use ffmpeg easily as a swift package is a huge plus.

This is their FFmpeg kit: https://github.com/kingslay/FFmpegKit/tree/main

Here’s the SwiftUI implementation example: https://github.com/kingslay/KSPlayer/tree/develop/Demo/SwiftUI

9
 
 

Curious to start a discussion around the usage of NavigationView or the new NavigationStack in a complex app structure.

How people have implemented these in their own Apps or if they even use these, or have they come up with their own custom solutions?

I’ll start:

I experimented with a custom solution (not using navigationview or stack at all) using ZStacks on the topmost level of the application essentially. I’ve seen significant improvement in performance and cleaner code execution allowing me to route views inside nested sub views simply referencing an EnvironmentValue. But, the downside is losing the out of the box, didAppear and didDissappear lifecycle events.

I see NavigationStack is following suit with storing a stack of paths to route. But, sadly doesn’t support iOS 15. Using UIKit’s navigation controller is kind of a pain when wanting to support all 3 platforms too.

But, I wonder if others have done some analysis on trade offs regarding Navigation. Since it’s kind of the cornerstone of an Application as a whole.

10
11
 
 

Stanford finally uploaded their latest recording from Spring 2023. It's an updated version of their excellent course on SwiftUI development.

12
 
 

I've created this community because I was looking for one to participate in and it didn't exist yet.

Since then I've come to the realization that I can't commit the time that's necessary to make this into a successful community.

That's why I'm looking for someone who would like to take over and to whom I can transfer the community.

All that I ask is that you give it your best shot.

If you're interested please reply to this post.

13
 
 

When I navigate backward (like swiping the view from the left), I want to be able to drag it back from the right to move to that previous view. Sort of like an undo stack.
I asked this question on StackOverflow and the solution there works, but doesn't feel "native": I want the full dragging-of-the-view effect just like in the native navigation.
Is it possible to use NavigationStack or other existing views to solve that?

14
 
 

Xcode 15b3 allows as many child views in SwiftUI as you need, with no need to use Group!

Gone are the days of forgetting how many views you’ve used and then getting an error at compile time because you used 11 child views 😂

15
16
2
[Lemmit] SwiftUI Weekly - Issue #149 (weekly.swiftwithmajid.com)
submitted 1 year ago by lazyvar to c/[email protected]
 
 

cross-posted from: https://lemmit.online/post/79846

This is an automated archive made by the Lemmit Bot.

The original was posted on /r/swiftui by /u/majid8 on 2023-07-03 15:07:59+00:00.

17
 
 

Any SwiftUI related projects you're working on?

Something you'd like to share or perhaps need help with?

Share it here!

18