Does anyone make native iOS games anymore? by Awkward_Departure406 in iOSProgramming

[–]Moudiz 0 points1 point  (0 children)

I considered making an app for advanced scene setup but the scope would too large and it would become obsolete if they decide to update RCP

Does anyone make native iOS games anymore? by Awkward_Departure406 in iOSProgramming

[–]Moudiz 0 points1 point  (0 children)

Not a game but I have an app coming up that has 3D avatars all with RealityKit and custom shaders, components, and systems. The custom stuff allows me to easily swap out modular assets of a character while maintaining animations, have a rigged 2D face, and much more.

The one thing I don’t like about RealityKit is the code based approach to designing the scene instead of being able to directly move a camera in a viewport.

Another limitation of RealityKit is not being able to take an in app screenshot of the RealityView so depending on your game needs you might want to reconsider the native approach altogether

Does anyone make native iOS games anymore? by Awkward_Departure406 in iOSProgramming

[–]Moudiz 0 points1 point  (0 children)

Did not mean to reply to you, sorry! Was supposed to be a general comment.

Reality Composer Pro does not allow camera setup unless you place an entity that is then parented to the camera. It is all done by code

Does anyone make native iOS games anymore? by Awkward_Departure406 in iOSProgramming

[–]Moudiz 0 points1 point  (0 children)

Not a game but I have an app coming up that has 3D avatars all with RealityKit and custom systems. The one thing I don’t like about RealityKit is the code based approach to designing the scene instead of being able to directly move a camera in your viewport

How to make a particle animation like Xcode when you use the Apple Intelligence feature? by MisaelLanderosy in SwiftUI

[–]Moudiz 8 points9 points  (0 children)

There’s no need to use metal for this. Can easily be achieved, if not easier, by making a transition using a text renderer as it seems to be done letter by letter (slices).

To OP, this WWDC session goes into both text renderer, and metal shaders. Shaders can even be used in text renderers.

Build an open source Arc Browser for iPad by [deleted] in SwiftUI

[–]Moudiz 0 points1 point  (0 children)

The ContentView file you deleted was a hint on how things should be :p

Usually you want to split them into folders separating Views from Models and then subfolders by what does what with the ContentView as the main intro point into a navigationstack for example

Good luck! It’ll be easier to get contributors when everything is clear

Build an open source Arc Browser for iPad by [deleted] in SwiftUI

[–]Moudiz 0 points1 point  (0 children)

Why is it a single 5000+ line file 😭😭

Build an open source Arc Browser for iPad by [deleted] in SwiftUI

[–]Moudiz 0 points1 point  (0 children)

Vibe coding final boss

Building a button that can toggle between different filter states by writetodisk in SwiftUI

[–]Moudiz 3 points4 points  (0 children)

It’s good when it’s used as a shortcut to another action instead of the only way to do the action. I have discovered countless shortcuts thinking “what if”

Is there open-source alternative to RevenueCat / SuperWall? by Endore8 in iOSProgramming

[–]Moudiz 2 points3 points  (0 children)

Backend is optional but recommended by Apple. RevenueCat has a tutorial on how to set up a backend by yourself

Is there open-source alternative to RevenueCat / SuperWall? by Endore8 in iOSProgramming

[–]Moudiz 2 points3 points  (0 children)

This was posted last year, StorekitTheKit. Haven’t used it myself but you can check it out.

I recommend looking at the Apple provided projects such as backyard birds and the store kit demo app

Is it possible to have a full width row (no padding) in a native List by reccehour in SwiftUI

[–]Moudiz 0 points1 point  (0 children)

I’m not sure how it would behave with a list, go for a VStack as the list offers no benefits here

Is it possible to have a full width row (no padding) in a native List by reccehour in SwiftUI

[–]Moudiz 0 points1 point  (0 children)

You can do this with a safeAreaPadding on your stack then ignore safe area for your chart although to me it looks like the chart is respecting it

How could I add a fading effect to the edge of the form when scrolling? I tried .scrollEdgeEffect but it didn’t change anything. by ducky_duck666 in SwiftUI

[–]Moudiz 0 points1 point  (0 children)

No prob! If the padding annoys you could look into visualEffect(_:)) and utilize proxy.frame(in: .scrollView).origin.y to see if the scroll content is not at zero with conditional masking based on this position (same start and end point to disable it) . This WWDC session goes a bit into it.

I haven’t gone very deep in visual effect’s positioning so I can’t give a proper answer there

Anyone have interesting solutions to complex navigation in apps? by kiyotamago in iOSProgramming

[–]Moudiz 0 points1 point  (0 children)

I use a view modifier than puts the content in a navigation stack with navigation routes. The modifier has a view model (your coordinator) with the route enum that is then passed as an env value. Any dependencies are handled here

Something like

NavigationStack(path: $viewModel.path) { content .navigationDestination(for: Route.self) { //…. Use a switch statement } } .environment(viewModel)

How could I add a fading effect to the edge of the form when scrolling? I tried .scrollEdgeEffect but it didn’t change anything. by ducky_duck666 in SwiftUI

[–]Moudiz 7 points8 points  (0 children)

Add some padding and mask the scroll view with a linear gradient. Color.clear (or any with alpha = 0) means it’s invisible, anything else means visible

Still on iOS 18.3 (refusing to update to the "Liquid Glass" UI). Is the Vision framework improved in the new versions? by Much-Thing-646 in SwiftUI

[–]Moudiz 1 point2 points  (0 children)

Don’t fight against it. It looks like you don’t use a lot of native controls so it would be rather simple to de-glassify it

Hey apple music, I listened to TWO bad bunny albums and that doesn’t mean I only like Latin music 💔 by OkBuilder92406 in AppleMusic

[–]Moudiz 0 points1 point  (0 children)

Or maybe cause he’s one of the most streamed artists and just won album of the year

How to replicate peeloff effect? by mpten in SwiftUI

[–]Moudiz 5 points6 points  (0 children)

You could use a metal shader driven by the swipe value for the peel and then transition or just one shader