Questions tagged [ios]
Questions about issues that are specifically related to Apple's iOS operating systems (whether directly or indirectly).
411
questions
0
votes
1
answer
92
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
82
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
280
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
180
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
144
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
259
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
304
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 ...
5
votes
1
answer
7k
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
221
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
38
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
279
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
194
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
225
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
178
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
69
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 ...
1
vote
2
answers
2k
views
Can you modify the front-end source code of a mobile app?
I get that a front-end isn't secure on the web because one could theoretically access the front-end code by opening dev tools and changing the code.
Do I also need to be careful about security for a ...
4
votes
0
answers
926
views
How to implement micro-frontends with Native Apps?
I'm working with Web (react) and Mobile (IOS, Android) teams. And I find that even with a microservices architecture we end up always doing duplicated work at the front end/client level. How to ...
-1
votes
1
answer
147
views
How to do Continuous Delivery for public libraries distributing through package managers?
We have built an iOS/MacOS library, that is being used by several iOS & Mac Apps of a very big company.
The library is being distributed through Cocoapods and Carthage, the package managers for ...
1
vote
0
answers
313
views
Common patterns for Observable data layer on iOS
I am working on learning native iOS development in Swift, and I am trying to find something that is similar to what I've learned in Android development with Kotlin.
In particular I am referring to ...
-1
votes
1
answer
50
views
GPS application targeting mobile devices
I'm working on making a product for tracking workers/staffs locations and in that case the application need to be able to run on the phone for at least 10 hours without the phone suddenly closing the ...
3
votes
1
answer
110
views
Need technical advice about passing data through UINavigationController
First of all a small introduction, im relatively new to Swift and to programming in general, been doing it for the last year and loving every and each new thing of this vast world.
My post is about ...
2
votes
4
answers
441
views
In mobile games that work across android and iOS is game logic written twice?
I was playing one of my favorite games from Supercell, and I imagine it’s a rather complicated game, and it stems across the two main mobile platforms.
My question is, do the developers write the ...
1
vote
3
answers
180
views
Should child objects not know parents while in views/view code?
As of iOS 6, Apple thought Unwind Segues would be added to their layout/views. What this means is, when you're on the 7th view of a stack, you can pop back to any other one. For those of you pure OO ...
-4
votes
1
answer
65
views
Capture the face when we blink eye
I need some guidance that how to capture the face when we blink the eyes. I have seen the core Image framework, but it detects only after capturing the image. But I need it to be live capture.
-4
votes
3
answers
1k
views
Why local database should be the only source of truth for mobile application?
Being mobile developer for quite some time (ios/android) I've learnt that local database is very rarely needed. Mobile application are mobile by definition, they usually serve only as clients to ...
1
vote
1
answer
37
views
Developing view controllers deep in the navigation hierarchy
I'm wondering how other people approach the problem of working on a particular screen in an iOS app that is, for example, behind a login screen and requires a lot of interaction to navigate too. It ...
0
votes
1
answer
124
views
Building native iOS app that runs on iPhone, iPad and Mac
Since Apple introduced Catalyst ealier this year during WWDC '19 it becomes possible to have a single codebase for an app that runs on iPads and Macs.
Already for a long time it was possible to ...
1
vote
1
answer
34
views
Transaction management on mobile applications
While there are prescribed methodologies for the middle layer when it comes to transaction management like Saga pattern etc. I want to know what's the advice on handling such on a mobile application ...
2
votes
3
answers
289
views
Best practice for feature flagging in mobile apps while avoiding incomplete functionality?
I'm wondering how best to handle the scenario of releasing a mobile app that includes an incomplete feature behind a feature flag in one version and then the completed feature behind the flag in a ...
-4
votes
1
answer
70
views
Can iOS App Process Location Info while it's not running?
I want to ask about iOS application characteristic/behavior regarding processing location information. My previous wording isn't straightforward and seems to make it look unclear (which is my problem ...
2
votes
2
answers
118
views
Swift, creating views with table view controller
Im not sure if this is the right place to post this kind of question, but, I heard from a colleage that he creates all his views in a table view and for each item creates a separate cell.
e.g. A ...
4
votes
1
answer
3k
views
What is a good approach for saving a Swift model that's a struct containing structs to Core Data?
I'm new to Core Data, and am not sure how to reconcile the need to inherit from NSManagedObject with the fact that my model is a Swift struct composed of structs. I chose to make my a model value type ...
1
vote
2
answers
84
views
How to make sure the file is uploaded from my application
Imagine the following scenario: I wish to build a photo-sharing social network app similar to Instagram (iOS only for the sake of conversation), and I want to make sure that users are using only my ...
1
vote
2
answers
180
views
who is responsible to define the algorithms, the class and data structures in a scrum team?
We developed our app for iOS and Android in native code. Before using scrum we had the following development logic:
We define the overall product requirements (for iOS and Android app)
The iOS ...
0
votes
1
answer
47
views
Only be able to sign into app after existing user send invitation [closed]
I am looking to build an app where the only way a new user can enter the app is if they have been invited by an existing user. Are there any API's, tutorials or resources that can help me achieve this....
3
votes
1
answer
274
views
Why are cloud services needed for push notifications?
We currently have a customer that wants us to implement push notifications to our app. The problem is that for this customer, security is really, really important...
I am not able to find any official ...
1
vote
1
answer
46
views
Review: Technique for building a timeline to trigger events at points on that timeline
I am thinking through some techniques where by I have an application with a timeline. The timeline plays in real time and at points on that timeline I would like to trigger some actions. There are no ...
1
vote
1
answer
285
views
Deploying Multiple Versions in One App Package
This is a question about Android, and iOS apps. The technology is Xamarin (C#) but this is not really important. The app will be deployed to the stores. The client app must be compatible with the ...
-1
votes
1
answer
46
views
Is a localized Mobile App considered bad and prone to removal from Apple/Google's perspective?
For the occasions that I've been offering SaaS, I've been asked to develop Apps that are pretty much a clone of regular e-commerce webpages, but with a few features like notifications and, well, being ...
-2
votes
1
answer
56
views
IOS/Android Push notifications
I am planning some app as a part of our product. One part of the app will be to receive push messages.
Sometimes it's months between uses of the app and, by experience with other apps I've used, it ...
3
votes
3
answers
1k
views
How do I architect an iOS app when multiple view models must know when the model has changed?
I'm using MVVM and I have an app with a UITabBarController, the Main tab of which is a list of publications and the other is a Search screen where they can search for publications. Searching returns a ...
1
vote
2
answers
241
views
What is better approach to implement dependency injection using MVVM Architecture?
I need to use DispatchQueue within controller and pass it as dependency. This is what I have tried so far and worked out two solutions. Need to ask what is better and in common use by other developers:...
8
votes
8
answers
4k
views
Unit test which asserts that current thread is the main thread
The question is does it make sense to write a unit test which asserts that the current thread is the main thread? Pros/cons?
Recently I've seen the unit test which asserts the current thread for the ...
1
vote
0
answers
48
views
iOS CloudKit - Store NSData representations of classes or create individual records with individual fields?
I have an app that already locally archives user created objects and has for several years. Each archived object can have several nested objects or arrays of objects in it--all of which conform to ...
1
vote
2
answers
328
views
Directing user to a specific screen on App after he installs the App
I have a very specific use case. We are working on a Project where user can buy the tickets to an event. In this, we are asking the user to enter an Email id where he can receive the email from where ...
0
votes
2
answers
59
views
Web Services with Android and iOS apps
I have a website which uses REST Api for communication. All data retrieval and save happen through Rest Api calls(polyglot environment). Now I am planning to create an Android and iOS app .
I have ...
1
vote
2
answers
240
views
Is NSNotification in iOS a good design?
Because of some essential C++ libraries, I have to mix Objective-C and C++ in my code. But the problem is that the callback between C and Objective-C is extremely hard to design and manipulate, so I ...
5
votes
2
answers
6k
views
Is it a good idea to use Singleton pattern for an API manager?
So basically I am writing a wrapper for a REST API in objective-c so that our customer can easily use them in their iOS development.
I am trying to find a good design pattern for this purpose, it ...
0
votes
1
answer
248
views
A separate UIViewController for UITextField - iOS
In my iOS project I have a set of custom textfields, e.g. for password entry.
As an example, such textfields can contain additional views and logic - for example, show or hide a password with a press ...
0
votes
1
answer
66
views
Web designer equivalent in Android and iOS worlds?
When web came, for years designers would create stunning designs in Photoshop, and developers would try to translate those designs to HTML/CSS/JS. This had many problems with itself. Lack of ...