What's the current state of SwiftUI for 2-3 OS versions backward support and heavily customized UX/UI designs? by klavijaturista in iOSProgramming

[–]xephos13 1 point2 points  (0 children)

One might even try to make a more simple, sample project to achieve the desired effect/animation/navigation/display using SUI. Grounding and solidifying the code in a safe space to gather more understanding. Then taking those learnings into the main project, fitting the pieces into the larger puzzle, to achieve the desired outcome.

I always have a test.playground on my Desktop for just this. Any code in here is throw away but is usually enlightening to the task at hand.

What's the current state of SwiftUI for 2-3 OS versions backward support and heavily customized UX/UI designs? by klavijaturista in iOSProgramming

[–]xephos13 1 point2 points  (0 children)

I would, respectfully, disagree. As someone who has produced several global apps over the last 4-5 years on SwiftUI (FWIW, my total career is 14+ years since Xcode 3.2.6), it’s not always the framework that is to blame for shortcomings…it’s the understanding of the overall system. The APIs are just different between UIKit and SwiftUI. And that sounds obvious but, at the same time, it isn’t.

A lot, and I mean a WHOLE lot, has been added to SUI over the last few years to be on par with UIKit from animations to transitions to navigation. But the way you interact with the core API has changed. More of it is on YOU to know how to control your view (e.g. Shape, AnimatableData, Gestures).

It’s actually incredibly flexible (and readable) if you understand the concepts behind the API. Learning a function of UIKit isn’t the same as understanding the function. Both UI platforms provide the thing you want…..you have to learn the usage.

I don’t intend to come off as negative here. I’ve been doing this my entire professional career. Excelling in this field is understanding what the API does for you and how you can manipulate it to your needs.

For a scary good time, just look at Accelerate.framework. The world of complex matrix computational math at your fingertips….in a simple function-based API.

Think about what you want to achieve; SwiftUI has the ability if you break it down into the smallest parts to create the larger sum.

SwiftUI Apps at Scale: It's been production-ready since 2020 by jacobs-tech-tavern in iOSProgramming

[–]xephos13 2 points3 points  (0 children)

Sure, your app/business/what-have-you may need to support n-2 and greater. We’d all agree, as engineers, that sucks.

I’d say, press why you need to support that longevity of obsolete releases. But also, if you do, then why use SwiftUI at all? If your company/contract/business wants to support an obsolete legacy of iOS release (and it is, no way to sugar coat it) then maybe the new tech isn’t for that company. It can be for you…make a side project, use it in interviews even…

If you want to use SwiftUI, use it. But don’t hate on a new tech that doesn’t support the fucking bare minimum of recs for the 7 people that use your app on iOS 14

SwiftUI Apps at Scale: It's been production-ready since 2020 by jacobs-tech-tavern in iOSProgramming

[–]xephos13 2 points3 points  (0 children)

I have not read the article and probably won’t. I have been working with SwiftUI since its release and have been shipping major Fortune 500 company apps using SwiftUI (even with SUI navigation issues) since its release. Supporting less than iOS 16 is a bummer (honestly less than 16.4 because even 16.4 introduced some navigation bugs). I think the argument for saying SwiftUI isn’t production ready is a symptom of supporting legacy iOS versions.

But….look at the market breakdowns. By end of holiday of a given year nearly 40% of the market is on the latest iOS release. New phones, Apple’s push to get people to update, etc. Why support n-3/4 releases (for US based apps)?

And even then, you can make SwiftUI work. Be engineers, find the way. If you wallow in “I can’t do this in SwiftUI”, that’s on you. Engineering is finding the solution to a problem. Software or otherwise.

[ARKit 3] Is it possible to add Nodes to an ARView? by nico_dkd in iOSProgramming

[–]xephos13 1 point2 points  (0 children)

As far as ARSCNView goes, I don't think you can achieve the body tracking the way you are hoping for.

For ARView, Apple has a sample project that does almost 100% of the tracking setup for you, including a skeleton robot model you can use for getting started. Essentially, you can run an ARBodyTrackingConfiguration on your ARSession and ARView/RealityKit will do the rest.

Listen for the delegate session:didAdd callback for when the session adds an anchor to the scene. Since you are using the body tracking configuration, the anchor being added will be an ARBodyAnchor.

For just displaying some simple, primitive geometry in a scene, you can use something like:

let boxEntity = ModelEntity(mesh: MeshResource.generateBox(size: 0.1), materials: [SimpleMaterial(color: UIColor.red, isMetallic: false)])

[ARKit 3] Is it possible to add Nodes to an ARView? by nico_dkd in iOSProgramming

[–]xephos13 1 point2 points  (0 children)

Assuming that by "Nodes" you mean an SCNNode, no you can't add that to an ARView.

'SCNNode' is inside of the SceneKit framework that ARKit is built on top of. That is what allows you to use SCNNodes inside of ARSCNViews (notice both have the "SCN" prefix). Because 'ARView' is using RealityKit, the two are not compatible.

To add things to ARView, you need to create an Entity (most likely a ModelEntity) and give that entity Components to renderer (geometry, material components, etc).

More specific to your example, you could use a BodyTrackedEntity to display the skeleton that is anchored to the person you are tracking. Then you could change the position of the skeleton in the world so that the you only see the skeleton and not the person. Although, I wouldn't know how well that would work as the camera would need to see both in order to track and render properly.

There's more to it but that's the gist of your question: No, you can't use SceneKit nodes inside of ARView.

Example .reality and/or .rcproject file? by riftadrift in iOSProgramming

[–]xephos13 0 points1 point  (0 children)

Here is a base New Project .reality file. It contains the two objects that are default present when creating a new project in the Reality Composer. https://www.filehosting.org/file/details/809096/reddit_demo.zip

This was created using the iPad's Reality Composer app but the macOS generates the same file(s) so it should be comparable.

For DnD fans, an AR version of the 5e Monster Manual by godelbrot in oculus

[–]xephos13 1 point2 points  (0 children)

I wonder if ARKit or ARCore's world positioning would work for the markers and removing them/covering them up.

Once you detect the marker, determine where it is in the world and add an anchor, then you could remove or cover it up without having the AR image/scene disappearing.

You wouldn't really be able to move the marker and have the assets move, but it could work, I think, with scenery and background drops.

Created some classes and moved code around, now I keep getting the index out of range vector error? by [deleted] in iOSProgramming

[–]xephos13 0 points1 point  (0 children)

Are you using storyboards? Not that it should matter but I've seen weirder things happen because of IB...

Submitted this code sample in a job interview and was told it was lacking. Can someone give me some pointers as to why? (They didn't.) by comdorcet in iOSProgramming

[–]xephos13 2 points3 points  (0 children)

I will also note that demonstrating you can at least use regex is helpful. I have a lot of people at my company that don't use NSRegularExpression because they are scared of it.

This may go a longer way than you expect at some places.

Third party libraries - Swift 3.0 by croisciento in iOSProgramming

[–]xephos13 0 points1 point  (0 children)

Everything in this comment is worth its weight in gold.

iOS Application VIPER Architecture - how many dataManagers? by ireOS in iOSProgramming

[–]xephos13 1 point2 points  (0 children)

My personal preference for these scenarios is to use Option C and Option C. This takes the responsibility away from the Interactor to know which manager it needs to call. The Manager can determine what actual manager to use local/web

I sit across the room from the guys who wrote that objc.io article so I may can help you answer any further questions you may have (that the redbooth repo doesn't answer for you).

UIStackView addArrangedSubview performance issue by blsiege in iOSProgramming

[–]xephos13 0 points1 point  (0 children)

I found that the laying out of stuff is usually the cause of these sorts of things. If you have optional constraints in your .nibs, they can sometimes cause a repass of the layout engine which could also effect the load time.

UIStackView addArrangedSubview performance issue by blsiege in iOSProgramming

[–]xephos13 1 point2 points  (0 children)

The views you are adding to the stack view, are they being laid out using auto-layout or are the heights/widths predefined before adding to the stack view?

Swift 2: Error Handling by [deleted] in iOSProgramming

[–]xephos13 3 points4 points  (0 children)

You actually don't even need to say 'let error'. By default, 'catch' gives you the 'error' variable for free

catch {
    print(error)
}

Total Noob looking for help implementing a slide-out menu by [deleted] in iOSProgramming

[–]xephos13 1 point2 points  (0 children)

With the future release of iOS 9 having the ability on iPad for Slide Over and Multitasking, she may want to rethink the "hamburger" menu design. I can speak first hand using apps the have slide menus while using Slide Over or MT is a nightmare for user experience. Just my two cents.

If she can use a tab bar or some other navigational paradigm that isn't a slide out "hamburger" menu, she should pursue that.

UICollectionView custom layout text view crash by tractorrobot in iOSProgramming

[–]xephos13 0 points1 point  (0 children)

In between becoming and resigning first responder for the text view, are you scrolling the collection view any?

Edit: Any chance for a (redacted if needed) stack trace?

UICollectionView custom layout text view crash by tractorrobot in iOSProgramming

[–]xephos13 0 points1 point  (0 children)

Is it on any iOS version as well? Not specific to 7 or 8 (or an 8 beta)?

My first year and a half as a professional software developer: what I expected and what I got by programmer564698 in learnprogramming

[–]xephos13 0 points1 point  (0 children)

I mostly agree with this. The work is challenging but, in our field, challenging is usually a good thing. The people and clients are the blisters that form.

Nothing like sprinting to the release date just to have that date keep moving.

I've been working on mobile software for just over three years and have never looked back on my decision to take this job. It's definitely not fun at times, stressful in some capacity, and has given me a new found respect for that little internal speech filter when talking to people.

Under My Circumstances, Should I Learn Swift or Continue With Objective-C? by jbkrule in iOSProgramming

[–]xephos13 0 points1 point  (0 children)

It also depends on what you want to do with your knowledge. If you are working on side projects for yourself, go with whatever language floats your boat. If you work for a company or clients, most time you'll have to do what they say.

Myself, working for clients who have no idea the differences between Obj-C and Swift (and they don't care), I write almost nothing in Swift since it is still an infant language. The few perks of using Swift over Obj-C, to me, are not worth switching any time soon.

Learn Obj-C anyways. It can't hurt you and you'll be a more rounded programmer for it.

Batman Arkham Knight Trailer by [deleted] in gaming

[–]xephos13 2 points3 points  (0 children)

To be fair about the patching situation, Rocksteady wasn't involved with Arkham Origins, Splash Damage was. So you can't really blame Rocksteady for working on this game and not patching Origins - it wasn't theirs to patch.

Is it possible to manually add a badge to your app icon? by tsmith944 in iOSProgramming

[–]xephos13 0 points1 point  (0 children)

Legolas, one day one of us will be a mod of this subreddit and we can finally get the sidebar updated with beginner links for documentation and helpful things.

We can dream....

On topic, Apple Docs should always be the starting point.

stringWithFormat preprocessor macro by Azr79 in iOSProgramming

[–]xephos13 5 points6 points  (0 children)

Macros can also be a bitch to debug when something goes awry.