Post

Replies

Boosts

Views

Activity

Reply to Timers in widgets, how to calculate correct time
Yeah, @jcgoforth, I see what you're saying, but even if I remove the seconds the timers get hours out of sync, i.e. "29:17" (29 hours 17 mins). With a timeline entry every hour - even if were a few minutes out in refreshing it - it should calculate the right time, and never be more than 24 hours. I raised a request to Apple to have proper formatting in timers, and make them more suitable for widgets, but it's fallen on deaf ears.
Topic: App & System Services SubTopic: General Tags:
Nov ’23
Reply to When modifying the Image color through "onTapGesture", XCode will crash
I've added a selected tab bar item as a @State var. Such vars should be private because they should only be modified within their own View. Also, you only really need to change the selection within the .onTapGesture because the view will take its data from the change you made, i.e. the image color is set by the value of selected. class MainViewManager: ObservableObject{ @Published var tabbarStatus: TabbarStatus = .homeView enum TabbarStatus: CaseIterable { case homeView case articsPage case profile var icon: String { switch self { case .homeView: return "house" case .articsPage: return "person.2" case .profile: return "person.crop.circle" } } } } struct MainTabbar: View { @EnvironmentObject var vm: MainViewManager @State private var selected: MainViewManager.TabbarStatus = .homeView var body: some View { HStack { ForEach(MainViewManager.TabbarStatus.allCases, id: \.self) { tabbarItem in Image(systemName: tabbarItem.icon) .foregroundStyle(tabbarItem == selected ? Color.accentColor : .gray) .onTapGesture { selected = tabbarItem } if(tabbarItem != .profile) { Spacer() } } } .padding(.horizontal, 30) .padding(.all) .frame(maxHeight: .infinity, alignment: .bottom) .background(Color.white) } } #Preview { MainTabbar() }
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’23
Reply to App data wipe out after iOS update from 16.6.* to 16.7.2
This looks like something you should debug yourselves. Have a device on iOS 16.6.x and store the relevant data in the defaults. When the OS is updated to 16.7.2, see if the data is still there. If not, determine why the data isn't there any more. An OS update shouldn't affect data stored in an app's sandbox. (Also, please don't use random tags for your post. This has nothing to do with App Store, Entitlements and Xcode. By using the wrong tags you're actually making the use of tags absolutely pointless. If I'm searching for posts tagged with Xcode and yours comes up, then it's just noise.)
Nov ’23
Reply to iPhone 12 not opening Instagram app
These are the Developer Forums, where developers ask each other for hints and tips on coding. Your question is more of a support one, so I'd suggest you ask it over at the Apple Support Forums, or even get in touch with the developer of the app, i.e. Meta. This isn't an Apple issue, and it's certainly not an issue someone who develops for Apple software is going to fix. Thanks.
Topic: App & System Services SubTopic: Hardware Tags:
Nov ’23
Reply to iBook problems with iOS 17.1.2
You've posted this to the Developer Forums, which is where developers - not Apple's developers - ask questions about how to fix something in their code. Your feedback is highly unlikely to get to Apple if you post here. It's like going to a mechanic to complain about the condition of the roads. I suggest you send Apple some feedback directly here. Thanks.
Topic: App & System Services SubTopic: Core OS Tags:
Dec ’23