menu

Recent questions tagged swift

1 vote
1 answer
How do I fix a Swift error? When you click on the icon, the list of users from the Firebase should appear But the app crashes 9363:1276925 Terminating app due to uncaught exception 'NSUnkno ...
by fokin_nikolay1989
asked Sep 18, 2021
5 votes
1 answer
How do I create a mobile app to control my boiler? We need to develop a mobile app for remote control of a water heater. The basic list of features is about the following: switching on and off, temperature control, mode ...
by insolentdog
asked Apr 4, 2021
1 vote
2 answers
How do I make the keyboard appear on the screen in swiftUI? I add a textfield, but I can only enter there using the computer keyboard, and the on-screen keyboard does not appear. How do I make it appear? ...
by impressive17
asked Apr 1, 2021
2 votes
2 answers
image
Can I get photos from the "people" album on my iPhone? Good afternoon, for my project I need face recognition in pics, and I decided not to do it a second time if Apple is already this (in pics). Is it possible to get these ...
by i_rustem
asked Apr 1, 2021
1 vote
1 answer
How to correctly write unit tests for the login validation function (swift)? I have a login validation function, what should unit tests look like for it? func isAllowed(withLogin login: String?) -> Bool { let regex: String = "^((?!(0-9 ...
by AlexeyBro
asked Mar 26, 2021
1 vote
1 answer
image
What am I doing wrong when I create UIStackView programmatically? Objective: Create a thing like this, programmatically: Which I did:class CHDotsView: UIStackView { var dotsCount: Int? init(frame: CGRect = CGRect(x: 0, ...
by AntonBrock
asked Mar 25, 2021
2 votes
3 answers
Why are there so few jobs in MacOS development? I want to learn how to write apps for Mac, judging by the lessons it is nice. But according to our vacancies on hh.ru, it seems that no one writes apps for iPhones excep ...
by vidyakinsergey
asked Mar 25, 2021
1 vote
1 answer
How do I get a variable stored in UiView? Friends, please advise. There is a programmatically created UiView storing many items, the top layer of which is a transparent UiButtone layer that has a CGRect equal ...
by DyadyaEmil
asked Mar 22, 2021
1 vote
1 answer
How do I display a list in swiftUI? A JST comes to me and I decode it into a structure (Let it be called ORDERS). The data is an array of orders(Structure ORDER(inside order number)). And I want to display ...
by impressive17
asked Mar 22, 2021
1 vote
1 answer
Why does the animation "fly off"? Good afternoon. There is an animation of a long picture behind, giving the illusion of soap bubbles. override func viewDidAppear(_ animated: Bool) { UI ...
by DyadyaEmil
asked Mar 18, 2021
1 vote
2 answers
Why does iOS 14 beta show AdMob ads without permission to access IDFA? I have an app that shows Admob ads (banners and cross-page ads). They write that with the release of iOS 14 ads will stop showing if the app is not updated, because the ...
by foma24
asked Mar 13, 2021
2 votes
1 answer
How to make an animated image reduction in PageViewController? There is a PageViewController that flips left and right. There is a photo on the first page. I need the picture to decrease smoothly when I flip to the second page. That ...
by AlexeyGolenkov
asked Mar 6, 2021
1 vote
1 answer
How do I transfer data from the third screen to the first? There are three screens, the first has a transition to the second, the second to the third. The first screen has a Label, and the third has a Text Field. How do I transf ...
by novembrz
asked Mar 3, 2021
1 vote
1 answer
Swift How do I set local notifications every day except today? How do I make the notifications show up every day at the specified time, except for today? There is code that displays notifications every day at 10:30: //Center ...
by antyxweb
asked Feb 28, 2021
2 votes
1 answer
How to update Realm in real time in UICollectionViewCell and display the result on the screen? Good evening! Please help me solve the problem with updating Realm data and displaying it on the screen. I have a custom cell in the UICollectionViewController that take ...
by AngelinaShamanova
asked Feb 28, 2021
1 vote
1 answer
Where do I store text information in the app? Hello! Task: You need to store many foreign words with their translations. Question: I don't know how to properly implement this, create an array that has a structure, ...
by DyadyaEmil
asked Feb 27, 2021
1 vote
2 answers
Where do I start learning Swift? Hello. As is clear from the question, I am interested in the Swift programming language. For a month, I've been looking at programming languages at the level of watching ...
by Swit4man
asked Feb 27, 2021
1 vote
2 answers
image
How to transfer data between 2 remote VCs? Hello, I need to transfer data between two VCs very far away from each other. I have tried Notifications but nothing works, is there any local storage for any data. For ...
by alex_643
asked Feb 24, 2021
1 vote
1 answer
image
Why doesn't the data transfer between VCs work in the opposite direction when pressing the Bar button item? Good day! There are two VC from the second need to transfer data, the transition to the second is carried out by the button on the navigation bar. But if the button on t ...
by alex_643
asked Feb 24, 2021
1 vote
1 answer
How to avoid the error of switching from String to Int? I did not know how to implement the task and found an interesting solution in JS ( https://github.com/Automedon/CodeWars-6-kyu-Soluit... ) , decided to rewrite, but th ...
by shevzoom
asked Feb 23, 2021