Post

Replies

Boosts

Views

Activity

Reply to programmatic constraints and Interface Builder
I did not dig into details, just found some interesting thread; problem may be how you use translatesAutoresizingMaskIntoConstraints: https://stackoverflow.com/questions/45466466/ibdesignable-view-with-dynamic-constraints-misplaced-children-when-rendering and maybe this one: https://stackoverflow.com/questions/43002115/update-constraints-for-ibdesignable Do you have a M1 Mac ? If so, look at this: https://developer.apple.com/forums/thread/665826 PS: Why don't you do it the other way: design in IB and adapt some constraints in code with ntheir IBObject where needed ?
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’21
Reply to Started to learn Swift and got stuck...
A possible reason is that your selection in the source file is not correct. You need to select precisely what I marked in green. If you select also the next line (with }) or forget the last line in green, you get the problem. Note: it is usually better to explicit the type of sender : @IBAction func buttonPressed(_ sender: UIButton) {
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’21
Reply to Xcode: Keyboard autorepeat
I never noticed, but you're right. And could not find anyway to change this behaviour in preferencesces. However, that looks like a design decision ; you get the alternate key and not the autorepeat. Maybe the reason is to avoid accidental typing errors in code ? Note : that's the same when you type text in this forum. Feel free to send a bug report for improvement suggestion.
Aug ’21
Reply to Xcode13 beta -> Xcode 12 issue
it does not depend on the iOS version Are you so sure ? What you show are swith iOS 15 and iOS 14. Could you test also with Xcode 13ß but simulator iOS14 ? Those are not blackboxes, they are the view background which is black. And same issue with the other light gray at top. Could you please show the complete code for the viewController as well as the screenshots of Attributes inspector for the view of the ViewController ? As this one:
Aug ’21
Reply to programmatic constraints and Interface Builder
I did not dig into details, just found some interesting thread; problem may be how you use translatesAutoresizingMaskIntoConstraints: https://stackoverflow.com/questions/45466466/ibdesignable-view-with-dynamic-constraints-misplaced-children-when-rendering and maybe this one: https://stackoverflow.com/questions/43002115/update-constraints-for-ibdesignable Do you have a M1 Mac ? If so, look at this: https://developer.apple.com/forums/thread/665826 PS: Why don't you do it the other way: design in IB and adapt some constraints in code with ntheir IBObject where needed ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to What is the iOS equivalent of SFCertificateView?
Here is a very old answer. At the time, did not exist: https://stackoverflow.com/questions/10546661/how-to-programmatically-display-a-ssl-certificates-trust-in-ios Maybe it has changed since ? I just don't know.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to [Xcode] Could not open file. (/Users/$USERNAME/go/src/$PRJNAME)
Is it a full project or a single text file ? If text file, you may try to open in an editor and then copy and paste in a file to create in your Xcode project.
Replies
Boosts
Views
Activity
Aug ’21
Reply to Started to learn Swift and got stuck...
A possible reason is that your selection in the source file is not correct. You need to select precisely what I marked in green. If you select also the next line (with }) or forget the last line in green, you get the problem. Note: it is usually better to explicit the type of sender : @IBAction func buttonPressed(_ sender: UIButton) {
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Xcode: Keyboard autorepeat
I never noticed, but you're right. And could not find anyway to change this behaviour in preferencesces. However, that looks like a design decision ; you get the alternate key and not the autorepeat. Maybe the reason is to avoid accidental typing errors in code ? Note : that's the same when you type text in this forum. Feel free to send a bug report for improvement suggestion.
Replies
Boosts
Views
Activity
Aug ’21
Reply to Segmentation fault vs Variable ... used before being initialized
No link with the problem, but why the comma after parameter            init(playingId: Binding<Int?>,) {
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Segmentation fault vs Variable ... used before being initialized
The fact is that this does not initialise a State var         self.player = AVPlayer() if you add a print just after, you'll see it print("Just after init", self.player) What is surprising and worth a bug report is the change in compiler behaviour between the Xcode releases. Please post the bug report reference and don't forget to close the thread.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Xcode13 beta -> Xcode 12 issue
it does not depend on the iOS version Are you so sure ? What you show are swith iOS 15 and iOS 14. Could you test also with Xcode 13ß but simulator iOS14 ? Those are not blackboxes, they are the view background which is black. And same issue with the other light gray at top. Could you please show the complete code for the viewController as well as the screenshots of Attributes inspector for the view of the ViewController ? As this one:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Xcode 12.5 and Xcode 13 beta 4
Where do you have the    edit schema-> import GPS     command ? What is GPS here ?
Replies
Boosts
Views
Activity
Aug ’21
Reply to problem with code signing
What is unityFramework ? Is it one of yours ? If so, check how it was signed. Also, update project settings as recommended in the Issues navigator panel.
Replies
Boosts
Views
Activity
Aug ’21
Reply to On first click the share sheet shows nothing
@mathusan When you post an image, could you first reduce it in Preview app (Tools > Adapt size) ? Otherwise it appears uselessly large on the forum. And please show the essential code directly here.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to UIImageView's highlighted image doesn't work in iOS15
That's just an hypothesis. Could happen that iOS changes how and when some API are called. And then, what did work by chance in older iOS is now broken. We would need to see the complete code where you use CollectionView to analyse. Question: why and where do you set collectionViewCell.isHighlighted ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Generic parameter 'Parameters' could not be inferred
Hope you could find some answer here: https://stackoverflow.com/questions/28458160/default-value-for-optional-generic-parameter-in-swift-function Seems to be an open discussion : https://forums.swift.org/t/default-values-for-generic-parameters/34020
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Apps crashing in iOS latest beta (as of July 20th 2021)
Thanks for feedback. Could you detail ? reset what (do you mean remove) ? You should post the details and mark the correct answer, that may help others.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’21
Reply to Is there iOS custom SDK for Razorpay
You should ask directly to RazorPay. There seems to be such SDK or at least pod on their website: h t t p s : / / razorpay. com/docs/payment-gateway/ios-integration/standard/
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21