Post

Replies

Boosts

Views

Activity

Reply to Recipes App | SwiftUI | Creating the pages
You create the files in the project as I explained in the other thread. The struct will be named FirstTabView and SecondTabView. Those files content will look like this: FirstTabView.swift import SwiftUI struct FirstTabView: View { var body: some View { Text("Hello, FirstTabView!") } } struct FirstTabView_Previews: PreviewProvider { static var previews: some View { MySwiftUIView() } } and SecondTabView.swift import SwiftUI struct SecondTabView: View { var body: some View { Text("Hello, SecondTabView!") } } struct SecondTabView_Previews: PreviewProvider { static var previews: some View { MySwiftUIView() } } The connection to the tabBar is made by this code in the parent View (the one which will contain the tabbar) TabView { FirstTabView() .tabItem { Label("1st", systemImage: "list.dash") }
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’21
Reply to Collection view not displaying Cells
You don't show enough code. Could you show the code where you define the delegate and data source functions for the collectionView ? How is the cell defined ? Directly in the collectionView or with a specific nib ? Look at your code, I bet you will come in a few minutes after discovering a major flaw, as usual.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’21
Reply to What is the best way to get support for Xcode?
You've posted 4 similar questions in just one hour. That's not the best way to use the forum. I looked back at your original question. It lacks important information: what is Xcode version ? what is MacOS version ? what are simulators that work, those that don't ? What is the target version you have defined for your app ? when it doesn't work, does the simulator launch ? Do you see your app in the simulator screen ? Do you get error messages from Xcode in the Issues Navigator ? So how to get help ? By providing this type of information.
Jun ’21
Reply to iOS Custom Keyboard Extension - Change height to fullscreen
You can hide the Mike (turn dictation off) ; you can hide the globe as well : https://developer.apple.com/documentation/uikit/keyboards_and_input/creating_a_custom_keyboard Use UIInputViewController’s needsInputModeSwitchKey property to determine if you should display a button to switch keyboards. But I don't think we can remove the bar https : / / w w w.reddit. com/r/iphone/comments/7ay7x7/anyone_else_hate_this_bar_under_the_keyboard/ I could not find how to access to UIKeyboardDockView. I do not find it described in doc.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’21
Reply to Button that takes to new view controller does not work
I would check a few things first. Is the func called ? if the vc instantiated ? Is the pushView called ? So, I would instrument the code : @IBAction func fightButton(_ sender: UIButton) { print("fightButton called") if let vc = storyboard?.instantiateViewController(withIdentifier: "Battle") as? BattleViewController { print("BattleViewController instantiated") print("navigationController", navigationController) navigationController?.pushViewController(vc, animated: true) } } Please tell exactly what you get. Note that if you have defined a segue directly from the button, the IBAction will not be called.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’21
Reply to iOS 15
5 days to wait till WWDC…
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to User is not able to login on iOS 14.5.1 and above versions
We are facing some API related issues Which API ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to this class is not key value coding-compliant for the key result. - Error
Could you show the code and tell exactly where you get the error ? You have removed the connection : of what to what ? But you should create the connection from objects in IB to its IBOutlet. And do an option-clean build forlder once done.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Does Apple GSX provide any API
I would advise you to ask directly to Apple's customer support. Here Contact Us
Replies
Boosts
Views
Activity
Jun ’21
Reply to Deleting Forum Posts
No, there is no way to delete neither to edit (after 1 hour).
Replies
Boosts
Views
Activity
Jun ’21
Reply to Recipes App | SwiftUI | Creating the pages
You create the files in the project as I explained in the other thread. The struct will be named FirstTabView and SecondTabView. Those files content will look like this: FirstTabView.swift import SwiftUI struct FirstTabView: View { var body: some View { Text("Hello, FirstTabView!") } } struct FirstTabView_Previews: PreviewProvider { static var previews: some View { MySwiftUIView() } } and SecondTabView.swift import SwiftUI struct SecondTabView: View { var body: some View { Text("Hello, SecondTabView!") } } struct SecondTabView_Previews: PreviewProvider { static var previews: some View { MySwiftUIView() } } The connection to the tabBar is made by this code in the parent View (the one which will contain the tabbar) TabView { FirstTabView() .tabItem { Label("1st", systemImage: "list.dash") }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Why xcode is not released with OS releases?
There is always a small time lag between the 2. But WWDC approaching, 12.6 should come very soon.
Replies
Boosts
Views
Activity
Jun ’21
Reply to Recipes App | SwiftUI | Creating the pages
You've experienced the incredible pleasure of app development when it suddenly works. have a good continuation (don't forget to close your thread).
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Collection view not displaying Cells
You don't show enough code. Could you show the code where you define the delegate and data source functions for the collectionView ? How is the cell defined ? Directly in the collectionView or with a specific nib ? Look at your code, I bet you will come in a few minutes after discovering a major flaw, as usual.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to What is the best way to get support for Xcode?
You've posted 4 similar questions in just one hour. That's not the best way to use the forum. I looked back at your original question. It lacks important information: what is Xcode version ? what is MacOS version ? what are simulators that work, those that don't ? What is the target version you have defined for your app ? when it doesn't work, does the simulator launch ? Do you see your app in the simulator screen ? Do you get error messages from Xcode in the Issues Navigator ? So how to get help ? By providing this type of information.
Replies
Boosts
Views
Activity
Jun ’21
Reply to Search Function
What is exactly your problem ? Do you know how to query ? If so, is it to generate a random search ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to iOS Custom Keyboard Extension - Change height to fullscreen
You can hide the Mike (turn dictation off) ; you can hide the globe as well : https://developer.apple.com/documentation/uikit/keyboards_and_input/creating_a_custom_keyboard Use UIInputViewController’s needsInputModeSwitchKey property to determine if you should display a button to switch keyboards. But I don't think we can remove the bar https : / / w w w.reddit. com/r/iphone/comments/7ay7x7/anyone_else_hate_this_bar_under_the_keyboard/ I could not find how to access to UIKeyboardDockView. I do not find it described in doc.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to No Phone Signal
Did you try the basics: switch to plane mode and back to normal restart the phone
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Swift migration failed Segmentation fault: 11
Did you get messages in Issue Navigator to migrate to Swift5 or similar message ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Button that takes to new view controller does not work
I would check a few things first. Is the func called ? if the vc instantiated ? Is the pushView called ? So, I would instrument the code : @IBAction func fightButton(_ sender: UIButton) { print("fightButton called") if let vc = storyboard?.instantiateViewController(withIdentifier: "Battle") as? BattleViewController { print("BattleViewController instantiated") print("navigationController", navigationController) navigationController?.pushViewController(vc, animated: true) } } Please tell exactly what you get. Note that if you have defined a segue directly from the button, the IBAction will not be called.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21