Please avoid playing in forum with questions which are not even questions to avoid polluting. Or just indicate it is a test you are doing.
Post
Replies
Boosts
Views
Activity
Could you find where it crashes (call stack). If so, please show code.
You have a segmentation fault. This may be due to a missing or corrupted IBOutlet connection. Did you check all IBOutlets connections ?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
@makabaka1880 no what ?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
If you're not satisfied by the help and the solution, the best is that you search and find a better solution by yourself. Good luck.
Topic:
Programming Languages
SubTopic:
Swift
Tags:
To get a better result (having "Std" appear during scrolling and disappearing from previous selection, you need to intercept the scroll position. See discussion here: https://stackoverflow.com/questions/5237696/read-position-of-uipickerview-while-scrolling
Topic:
Programming Languages
SubTopic:
Swift
Tags:
@Mandar Pathak I think answer is in eskimo's: This can change from release to release, as Apple imports new versions of CLDR
Topic:
App & System Services
SubTopic:
General
Tags:
Thanks, I learned something. But it could be useful for doc to remind it.
Topic:
App & System Services
SubTopic:
General
Tags:
No, when you declare a computed var, you have to declare type. If you try without, you'll get an error: computed property must have an explicit type
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Please just post the ContentView file ? The one you call from SceneDelegate. Anyway there are files missing in the attached github.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Does it work now ? If so, don't forget to mark the correct answer to close the thread.
Topic:
Programming Languages
SubTopic:
Swift
Tags:
you place it anywhere at top level, outside of any class.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Note that notification will work only if FirstViewController is loaded when you tap in SecondViewController (that is the case if you are in a navigation stack or if you present modally).
Otherwise, you could save to userDefaults (in SecondViewController) and read userDefaults to set the button1 enabled or disabled in viewWillAppear in FirstViewController
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
So please show complete code, for instance of struct remi5en250
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Complete code, I mean the view including the switch as well as the views you call. And most important, the error code. You can also attach a textFile with the attach button just below the editing frame in this page (rightmost icon ∞)
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Yes, you can do the same. But if you are to use in many places, environment var are probably a better choice.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Please avoid playing in forum with questions which are not even questions to avoid polluting. Or just indicate it is a test you are doing.
- Replies
- Boosts
- Views
- Activity
Could you find where it crashes (call stack). If so, please show code.
You have a segmentation fault. This may be due to a missing or corrupted IBOutlet connection. Did you check all IBOutlets connections ?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
- Replies
- Boosts
- Views
- Activity
@makabaka1880 no what ?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
- Replies
- Boosts
- Views
- Activity
If you're not satisfied by the help and the solution, the best is that you search and find a better solution by yourself. Good luck.
Topic:
Programming Languages
SubTopic:
Swift
Tags:
- Replies
- Boosts
- Views
- Activity
To get a better result (having "Std" appear during scrolling and disappearing from previous selection, you need to intercept the scroll position. See discussion here: https://stackoverflow.com/questions/5237696/read-position-of-uipickerview-while-scrolling
Topic:
Programming Languages
SubTopic:
Swift
Tags:
- Replies
- Boosts
- Views
- Activity
@Mandar Pathak I think answer is in eskimo's: This can change from release to release, as Apple imports new versions of CLDR
Topic:
App & System Services
SubTopic:
General
Tags:
- Replies
- Boosts
- Views
- Activity
Thanks, I learned something. But it could be useful for doc to remind it.
Topic:
App & System Services
SubTopic:
General
Tags:
- Replies
- Boosts
- Views
- Activity
No, when you declare a computed var, you have to declare type. If you try without, you'll get an error: computed property must have an explicit type
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
- Replies
- Boosts
- Views
- Activity
Please just post the ContentView file ? The one you call from SceneDelegate. Anyway there are files missing in the attached github.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
- Replies
- Boosts
- Views
- Activity
Does it work now ? If so, don't forget to mark the correct answer to close the thread.
Topic:
Programming Languages
SubTopic:
Swift
Tags:
- Replies
- Boosts
- Views
- Activity
you place it anywhere at top level, outside of any class.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
- Replies
- Boosts
- Views
- Activity
Note that notification will work only if FirstViewController is loaded when you tap in SecondViewController (that is the case if you are in a navigation stack or if you present modally).
Otherwise, you could save to userDefaults (in SecondViewController) and read userDefaults to set the button1 enabled or disabled in viewWillAppear in FirstViewController
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
- Replies
- Boosts
- Views
- Activity
So please show complete code, for instance of struct remi5en250
Topic:
Programming Languages
SubTopic:
Swift
Tags:
- Replies
- Boosts
- Views
- Activity
Complete code, I mean the view including the switch as well as the views you call. And most important, the error code. You can also attach a textFile with the attach button just below the editing frame in this page (rightmost icon ∞)
Topic:
Programming Languages
SubTopic:
Swift
Tags:
- Replies
- Boosts
- Views
- Activity
Yes, you can do the same. But if you are to use in many places, environment var are probably a better choice.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
- Replies
- Boosts
- Views
- Activity