Post

Replies

Boosts

Views

Activity

Reply to Xcode simulator does not show the same as Preview
Your code will not build in Xcode, as you have not supplied the definition of "tamanosDispositivos". I think "func interfazCambio ()" should be within "tamanosDispositivos"? Your code for "func interfazCambio ()" is not valid (there is an "else if", which is not part of an "if" statement). So it is very difficult to say what might be going wrong. However, I can make some general comments: You seem to have made things very, very complicated. This does not seem to be in keeping with the principles of SwiftUI, which allow the building of a device-independent User Interface, without explicitly accounting for every variation between the different screen sizes (as you seem to do). I would suggest that you simplify your UI down to a minimal specification, and get that working first: What Views appear on screen? What are the spatial relationships between them? What conditions affect these? I would also suggest that you consider abandoning the external code library (which is just an extra complication, at this stage), and use standard SwiftUI until you have a more thorough understanding of it. (This only affects "VisualEffectBlurView", in the supplied code.) You might also want to consider some further study of SwiftUI... ...I highly recommend Paul Hegarty's Stanford course, at https://cs193p.sites.stanford.edu If you have more specific issues, I suggest you post them here on the forum, as new questions.
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 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 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 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 will not build in Xcode, as you have not supplied the definition of "tamanosDispositivos". I think "func interfazCambio ()" should be within "tamanosDispositivos"? Your code for "func interfazCambio ()" is not valid (there is an "else if", which is not part of an "if" statement). So it is very difficult to say what might be going wrong. However, I can make some general comments: You seem to have made things very, very complicated. This does not seem to be in keeping with the principles of SwiftUI, which allow the building of a device-independent User Interface, without explicitly accounting for every variation between the different screen sizes (as you seem to do). I would suggest that you simplify your UI down to a minimal specification, and get that working first: What Views appear on screen? What are the spatial relationships between them? What conditions affect these? I would also suggest that you consider abandoning the external code library (which is just an extra complication, at this stage), and use standard SwiftUI until you have a more thorough understanding of it. (This only affects "VisualEffectBlurView", in the supplied code.) You might also want to consider some further study of SwiftUI... ...I highly recommend Paul Hegarty's Stanford course, at https://cs193p.sites.stanford.edu If you have more specific issues, I suggest you post them here on the forum, as new questions.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to App Store Connect requires invited users to not have apple id
Of course you are right, the message could be more helpful. Good that you were able to solve it. It is possible to add an Apple ID to multiple organizations (I do this)... ...but presumably as an existing ID, not a new one?
Replies
Boosts
Views
Activity
Nov ’21
Reply to App Store Connect requires invited users to not have apple id
Is it possible that the email address that is showing as an existing Apple ID really is an existing Apple ID? Perhaps the Apple ID was created via a previous attempt, or it was created some time ago (note the "...never been associated..." requirement). To confirm, you could test if it is possible to log in using that email as an Apple ID.
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
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 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
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 Unable to renew expired membership
Try signing out, then signing in again.
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 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 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 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 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 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 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