Post

Replies

Boosts

Views

Activity

Reply to Git Pull doesn't work correctly
When you add a file into an Xcode project the file is tracked by the project file itself, i.e. myProject.cxodeproj (and .xcworkspace if you're using that structure). If your friend is adding files to their local project and committing the changes, you should see those new files if your friend is also committing the changed .xcodeproj files, and you're pulling those, too. An easy thing to do is to locate the .xcodeproj file in Finder, right-click it and choose "Show Package Contents". Drag the files into a text editor app, then search them for the names of the new files that aren't appearing within Xcode. It's likely you won't find them, so they haven't been added to the project (or they have, but you haven't go the updated project file). (You can also just drag the .xcodeproj file into BBEdit, and it'll list those files for you.) Confirm with your friend that he's committing all the files.
Feb ’23
Reply to Toolbar goes mysteriously grey when VStack background color is set
Can you provide some more code? If I just put what you've provided (and add a ToolbarItem) into a standard new project, I just get a white screen. Gonna need more info, but in the meantime have you tried adding a background colour to the toolbar? import SwiftUI struct ContentView: View { var body: some View { VStack { } .background(Color.gray) .border(.red) .toolbar { ToolbarItem(placement: .bottomBar) { Button("Press Me") { print("Pressed") } } } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’23
Reply to Is it possible to launch my app from a calendar event?
You can create a URL and save it into a calendar event, and the user can tap it to go to your app, but there's no way of making the app open when a specific event time happens. For privacy reasons, the user must invoke your app themselves. Imagine the horrors if a nefarious app added multiple events to your calendar, and their app opened every few minutes.
Topic: App & System Services SubTopic: General Tags:
Mar ’23
Reply to How can i fix error: Type 'YandexInter' does not conform to protocol 'UIViewControllerRepresentable'
That error means you haven't implemented all the required functions from the protocol. Is it possible you've missed out: func sizeThatFits(ProposedViewSize, uiViewController: Self.UIViewControllerType, context: Self.Context) -> CGSize? and static func dismantleUIViewController(Self.UIViewControllerType, coordinator: Self.Coordinator)? I'm guessing as I've not used this one before.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’23
Reply to Scrumdinger ScrumsView doesn't update after editing the details of a scrum
I just downloaded the project files from the link you provided, opened the 'Complete' folder, opened the project, made zero code changes, ran it on an iPhone 14 Pro in the Simulator, and it works fine. The only difference I can see in your files is in the DailyScrum.swift model. Change it back to a struct, and check that line 45 is a mutating func rather than just a func. Without it being a mutating func you aren't able to change the data in the struct, which is likely the reason for your issue.
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’23