Questions tagged [ios]
Questions about issues that are specifically related to Apple's iOS operating systems (whether directly or indirectly).
411
questions
1
vote
1
answer
132
views
How do I mock API responses with security in mind?
My team and I are beginning to mock our API responses in our iOS app so we don't have to worry about our backend being up when testing.
I have conditional compilation directives based on the ...
1
vote
1
answer
215
views
SwiftUI, Core Data/SwiftData and Tight Coupling with the Views
I am starting to work on Core Data applications with SwiftUI. I have a view that looks like this:
struct ContentView: View {
@FetchRequest(sortDescriptors: []) private var todoItems: ...
0
votes
1
answer
681
views
Should I use my View Model to Test my Views in SwiftUI?
I was reading a post about testing in SwiftUI and the author said that don't write unit tests for your View Models that tests the UI of your view. The example he gave was a simple counter app.
...
5
votes
1
answer
236
views
Keeping version parity between platforms
I'm in the mobile development domain and I use semantic versioning to version my releases. I keep both versions the same as long as new builds are released for both iOS and Android platforms at the ...
-1
votes
1
answer
218
views
iOS application token auth best practices
I am looking into building an iOS application and using an internally built API to access data. My API has some authentication endpoints that takes in a username and password and, if the login is ...
1
vote
1
answer
341
views
SwiftUI View permissions best practice?
I am currently developing an iOS application where there are options on the screen to edit and delete a list. Only the user who created this list can edit or delete it. I am struggling to determine ...
0
votes
0
answers
378
views
How do I migrate Core Data data to a React Native application?
I have an iOS application that uses the Core Data framework. I'm migrating the application from Objective-C/Swift to TypeScript + React Native. My Core Data configuration uses SQLite as a backend.
The ...
8
votes
1
answer
8k
views
The right place for "app logic" in MVVM context
I hope this is the right place to ask.
I'm an experienced developer, and have used MVC for much time.
This question is in the context of iOS/macOS development for the most part, (SwiftUI).
Using MVC ...
0
votes
0
answers
266
views
How to set up login pin system
i want to set up basic login page in xamarin.forms. There is no username/password, just a simple pin
so far i have 3 pages to do this
Sign-up Pin page
Sign-up Confirm Pin Page (re-enter pin to ...
1
vote
0
answers
39
views
Should I separate a variable that changes often into a different entity although it is contextually should be inside another entity?
So, I have an entity called Consultation that is being used as a member variable of the class VideoCallViewModel that goes like this:
struct Consultation: Equatable {
enum Status: Int, ...
0
votes
0
answers
400
views
How to maintain and deploy a poc (Proof Of Concept) version of an app?
In our organization we sometimes have to create a poc (proof of concept) to either validate or invalidate the way to go. Currently we're having a discussion around how to embed this within our ...
0
votes
0
answers
202
views
What would be a good approach to applying computer vision to automatically edit out the downtime in tennis video?
I have an iOS/macOS tennis app that now lets the user import video, and I would like to add the ability to automatically edit out the significant amount of downtime where players are not in a rally or ...
-1
votes
1
answer
325
views
Is State Considered Part of Model In Desktop MVC?
Most of the answers I see that discuss what the model layer is comprised of, only address stateless MVC, particularly ASP.NET's implementation of it. When working with desktop MVC frameworks such as ...
1
vote
2
answers
187
views
iOS App Private Distribution
I have been confused about the best process for private distribution in iOS - imagine we are a company like Just Eat, where venues can sign up with us and take orders from customers via a customer app....
2
votes
0
answers
78
views
How can a mobile app measure the phone's rough distance with the user's laptop?
I have a mobile app (iOS and android compatible) that needs to know if it's far or close to the user's laptop/ desktop (e.g. whether it's within 5 meters or not). I need to make it secure such that ...