Post

Replies

Boosts

Views

Activity

Reply to No "Create Pull Request" option in XCode 13.1
Interesting, and strange. I'm not sure what you mean by "Create Pull Request button in the branches drop-down"... I don't see that button anywhere. Where are you expecting it to be? For an Xcode project with a local repository and a remote repository, I see: Source Control > Create Pull Request... I have full access to the remote repository, could that be important? For an Xcode project with a local repository, but no remote repository, I have no option: Source Control > Create Pull Request... (It isn't greyed-out, it doesn't appear at all)
Nov ’21
Reply to Xcode simulator does not show the same as Preview
Your code samples are too messed up, to make any sense of them. Paste the code into a new answer: ...as a "Code Block" ...using "Paste and Match Style" A "Code Block" puts one line before and one line after your code, each of those two lines containing three "backtick" characters. Then your code should format nicely. Once people can read your code, they may be able to help with your problem! Properly pasted code should look nice, like this: @State var accesibilidadActivaTexto = false //Cambiar a true @State var separacioTexto: CGFloat = 0 // Separación entre texto @State var separacionTextoiPad: CGFloat = 0 // etc...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Reply to Xcode simulator does not show the same as Preview
We are getting there, but we still need: tamanosDispositivos Also, your property names (correctly) begin with a lowercase letter, but you should capitalize your struct names, so struct tarjetaMomentoDia: View { struct tarjMomentoDia: Identifiable, Hashable { struct interfazCambiante { should be: struct TarjetaMomentoDia: View { struct TarjMomentoDia: Identifiable, Hashable { struct InterfazCambiante {
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Reply to SwiftUI NavLink Dismiss
To perform an action when a View disappears, you can use onDisappear func onDisappear(perform action: (() -> Void)? = nil) -> some View To update a value from an enclosing View, you could use a Binding.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Reply to Delegation in Swift
There is no type called "ProgressBar". Can you give more information? You have tagged your question with "Swift", so perhaps you mean a UIProgressView, or an NSProgressIndicator?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to swift and AppDirectory
You say "I get": file:///Users//Library/Containers/<*******.appName>/Data/Documents But that isn't a valid path (note the two backslash characters after "Users"). Can you share the correct path?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to JSONDecoder().decode failing on struct containing array(s)
...and some sample JSON?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Import Image from SwiftUI even if project already declares an internal Image type
You could put your typealias into your own class, like this: #if os(macOS) import Cocoa #elseif os(iOS) import UIKit #endif class CrossPlatform { #if os(macOS) typealias Image = NSImage #elseif os(iOS) typealias Image = UIImage #endif } Then you would have: var swiftUIImage: Image var crossPlatformImage: CrossPlatform.Image
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Apple Email Link/SMS Sign In App Review
Keep it simple - provide app review with test account credentials that you have already created (and that you know will work).
Replies
Boosts
Views
Activity
Nov ’21
Reply to No "Create Pull Request" option in XCode 13.1
For a project with a remote repository... From the Xcode menu: Source Control > Create Pull Request... Xcode 13.1 (13A1030d)
Replies
Boosts
Views
Activity
Nov ’21
Reply to No "Create Pull Request" option in XCode 13.1
Interesting, and strange. I'm not sure what you mean by "Create Pull Request button in the branches drop-down"... I don't see that button anywhere. Where are you expecting it to be? For an Xcode project with a local repository and a remote repository, I see: Source Control > Create Pull Request... I have full access to the remote repository, could that be important? For an Xcode project with a local repository, but no remote repository, I have no option: Source Control > Create Pull Request... (It isn't greyed-out, it doesn't appear at all)
Replies
Boosts
Views
Activity
Nov ’21
Reply to The size of GeometryProxy is different on iPad mini(6th generation)
Your GeometryProxy is reporting the correct size. The iPad mini 6 has a screen resolution of 2266x1488 So in Portrait mode, the screen width (in Points) is 744. This is narrower than the previous iPad minis, which were 768 wide. Reference: https://www.apple.com/uk/ipad-mini/specs/ I raised this issue here: https://developer.apple.com/forums/thread/689939
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to The size of GeometryProxy is different on iPad mini(6th generation)
Did that answer your question, @kedashiromasato?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Inspector of multiple-object selection in SwiftUI
If you are using MVVM, can you say a bit more about your ViewModel?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Unable to renew expired membership
Try signing out, then signing in again.
Replies
Boosts
Views
Activity
Nov ’21
Reply to Xcode simulator does not show the same as Preview
Your code samples are too messed up, to make any sense of them. Paste the code into a new answer: ...as a "Code Block" ...using "Paste and Match Style" A "Code Block" puts one line before and one line after your code, each of those two lines containing three "backtick" characters. Then your code should format nicely. Once people can read your code, they may be able to help with your problem! Properly pasted code should look nice, like this: @State var accesibilidadActivaTexto = false //Cambiar a true @State var separacioTexto: CGFloat = 0 // Separación entre texto @State var separacionTextoiPad: CGFloat = 0 // etc...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Xcode simulator does not show the same as Preview
We also need to see the code for: tarjMomentoDia tamanosDispositivos interfazCambiante You earlier posted tarjetaMomentoDia, but I assume that is different to tarjMomentoDia? And where is VisualEffectBlurView coming from?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Xcode simulator does not show the same as Preview
We are getting there, but we still need: tamanosDispositivos Also, your property names (correctly) begin with a lowercase letter, but you should capitalize your struct names, so struct tarjetaMomentoDia: View { struct tarjMomentoDia: Identifiable, Hashable { struct interfazCambiante { should be: struct TarjetaMomentoDia: View { struct TarjMomentoDia: Identifiable, Hashable { struct InterfazCambiante {
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to SwiftUI NavLink Dismiss
To perform an action when a View disappears, you can use onDisappear func onDisappear(perform action: (() -> Void)? = nil) -> some View To update a value from an enclosing View, you could use a Binding.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21