Post

Replies

Boosts

Views

Activity

Reply to battery health
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. These forums are NOT where Apple's actual developers chat about stuff. Your question is more of a product support one, so I'd suggest you ask it over at the [Apple Support Forums].(https://discussions.apple.com/) Thanks.
Topic: App & System Services SubTopic: Hardware Tags:
Jan ’24
Reply to Thanks Fellow Forum Members
Well, that's a bit passive-aggressive. Maybe those who looked at your post couldn't help? Is that their fault? Maybe it's your fault for not asking a question properly, or not formatting your code properly (exactly like you've just done here)? Stop being a child. Ask a proper question, and add code within the code formatting block - like most other people seem capable of doing - and maybe people will be able to help.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Reply to Ongoing Bug - Sonoma/Word - Footnotes
This isn't the place for your particular question. It looks like you have an issue with Microsoft's software, not Apple's software. Also, PLEASE don't use random tags for your question. What does this have to do with "Debugging"? What does it have to do with "Forums Feedback"? This isn't the place for your question. Please use the Apple Support Forums for your product issue, or contact Microsoft where the software issue seems to be.
Topic: App & System Services SubTopic: Hardware Tags:
Jan ’24
Reply to "Active scheme does not build this file" Problem
I think you only get this error when you're trying to preview, say, an iOS Home Screen widget but your active scheme is for something else, like a watchOS target. If you're previewing something in an iOS target, make sure to select the scheme that builds the iOS target. If you're trying to preview a watchOS target, select the watchOS scheme, etc.
Jan ’24
Reply to Warning: color asset name resolves to a conflicting Color symbol
What happens if you rename RedColor to HorseBatteryStapleColor? If the horse colour doesn't error, it's probably because UIColor.redColor is an actual thing and you're trying to overwrite it, but UIColor.horseBatteryStapleColor isn't a UIColor object so Xcode looks in your asset catalog. Just rename your colours to something more descriptive such as RedColor --> BadColor and GreenColor --> GoodColor.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Reply to Find My - Bluetooth Trackers = AirTags?
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. But in the meantime, if an object is certified for use on the Find My network, then yes, it acts like any other Find My device.
Jan ’24
Reply to Combining condition to show something,
I think part of the issue is that your "Hide TECO" switch says it hides TECO projects, but your Bool variable is called showTecoOnly. I've simplified it a bit, and avoided name clashes. See if this works for you; I've added some test data at the top and it seems to work for me: import SwiftUI var projects = [ Project(name: "Project1, isTeco = false, isFavorite = false", isTeco: false, isFavorite: false), Project(name: "Project2, isTeco = true, isFavorite = false", isTeco: true, isFavorite: false), Project(name: "Project3, isTeco = true, isFavorite = true", isTeco: true, isFavorite: true), Project(name: "Project4, isTeco = false, isFavorite = true", isTeco: false, isFavorite: true) ] struct ProjectList: View { @State private var hideTeco = false @State private var showFavorite = false var body: some View { let filteredProjects: [Project] = if(hideTeco && showFavorite) { // If TECO and favorite are active then I would only see favourite and not TECO projects projects.filter { project in !project.isTeco && project.isFavorite } } else if(!hideTeco && showFavorite) { // If TECO is not active but favourite is active then it will show all favourite projects projects.filter { project in project.isFavorite } } else if(hideTeco && !showFavorite) { // If TECO is active it will show all projects which are not TECO regardless if they are favorite projects.filter { project in !project.isTeco } } else { [] } NavigationSplitView { List { Toggle(isOn: $hideTeco) { Text("Hide TECO") } Toggle(isOn: $showFavorite) { Text("Show Favorite") } ForEach(filteredProjects) { project in NavigationLink { ProjectDetail(project: project) } label: { ProjectRow(project: project) } } } .navigationTitle("PROJECTS") } detail: { Text("Select a project") } } } #Preview { ProjectList() } struct Project: Identifiable { var id: UUID = UUID() var name: String var isTeco: Bool var isFavorite: Bool } struct ProjectDetail: View { var project: Project var body: some View { Text("ProjectDetail: \(project.name)") } } struct ProjectRow: View { var project: Project var body: some View { Text(project.name) } }
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’24