Search results for

calendar

1,863 results found

Post

Replies

Boosts

Views

Activity

Reply to Query with Predicate
Thanks @MobileTen. So I am selecting the seasoned in the sidebar view as follows: import SwiftData struct SidebarView: View { @EnvironmentObject var navigationManager: NavigationStateManager @State private var isShowingSeasonSelection = false var body: some View { VStack { List(selection: $navigationManager.SelectionState) { Label(Home, systemImage: house.fill) .tag(SelectionState.home) Section(Squadra) { Label(Rosa, systemImage: person.2.fill) .tag(SelectionState.rosa) Label(Calendario, systemImage: calendar) .tag(SelectionState.calendarioSquadra) } Section(Campionato) { Label(Calendario, systemImage: calendar) .tag(SelectionState.calendarioCampionato) Label(Classifica, systemImage: list.bullet.rectangle.fill) .tag(SelectionState.classifica) } Section(Allenatore) { Label(Esercizi, systemImage: pencil.and.list.clipboard) .tag(SelectionState.esercizi) } Section(Impostazioni) { Label(Impostazioni, systemImage: gear) .tag(SelectionState.settings) } } .listStyle(.sidebar) Spacer() Button(action:
May ’24
Handling 4xx Errors in Subscribed Calendar APIs: Does iPhone Stop Syncing?
I am managing a subscribed calendar through my iPhone and am curious about how iOS handles 4xx error responses from calendar APIs. Specifically, I would like to know if there is a process that stops the iPhone from attempting to sync the calendar if it consistently receives 4xx errors from the server. Does iOS have a mechanism to pause or stop calendar sync under such error conditions to prevent unnecessary data usage and battery drain? Any guidance or insights on this behavior would be greatly appreciated.
0
0
306
May ’24
iCalendar (.ics) feed, how to force calendar client to stop the subscription
I have an online service where it lets people subscribe to iCalendar feed. I'm wondering if there is a way to force the subscriber (their Calendar client) to stop their subscription. I have some subscribers who subscribed to a feed that doesn't exist anymore. The annoying part is that these subscribers is fetching the data every 30 seconds! I looked at iCalendar specification and it doesn't look like this is supported. I tried few http response codes (404 and 410), but this doesn't stop the client. The user agent I'm seeing in the log shows iOS/17.4 (21E219) dataaccessd/1.0. Any help is appreciated.
0
0
400
May ’24
Returning to previously opened app
Hi everyone, I’m just starting with swift and Xcode and have a basic question. I have the following code I found online for an app that generates math addition questions. I would like to run this Math app on my iPhone just before I open the apps I use most often (let’s say mail, WhatsApp, calendar and notes) ask me a maths question and if I answer correctly, carryon with the app originally intended to be opened. I can do the opening of the Math app before the apps I use more often with shortcuts. I would like to modify the code bellow so that if I answer correctly it “closes” itself and returns to the originally intended app. With that intention I included the “exit(0)”, but I get an error. Thanks for your help in advance! Best, Tom struct ContentView: View { @State private var correctAnswer = 0 @State private var choiceArray : [Int] = [0, 1, 2, 3] @State private var firstNumber = 0 @State private var secondNumber = 0 @State private var difficulty = 1000 var body: some View { VStack { Text((firstNumb
1
0
430
May ’24
MultiDatePicker: How to change language
I want to change the display language, particularly for week and the year and date on MultiDatePicker. By adjusting the locale, the year and date can be changed. However, I'm unable to change the display for week . I've tried several methods, such as setting the calendar and adjusting the time zone, but none of them seem to work. Are there any good way to solve it?
0
0
649
May ’24
SwiftUI needs MacOS 10.15?
Hey, I'm working on a new multi-platform application, and part of the application requires a calendar. I've created Day, Week, and Month calendar and they are all working as expected on Mac/iPhone and iPad. So I decided that I would make them a Library/Package and share with the community. I created a package project, moved all the working code into it, and then added the package into my project as a local dependency. Now I'm getting lots of errors in the package code about everything is only available in macOS 10.15. It's not the code as I know it works. I have platforms: [ .macOS(.v10_14), .iOS(.v15) ] This is my first attempt at a package. Is there something I'm not doing? Thanks, Mark
2
0
907
Apr ’24
Kernel Panic triggered by PCIe DriverKit Extension
My company has been developing a DriverKit Extension for our ThunderBolt attached devices. Our testing has gone well on Intel based machines but it seems to be able to cause kernel panics on my M1/M2 Mac when click Allow in Privacy & Security. It always crash immediately. Unfortunately it is ApplePPMCPMS: Could not register client id 5. Error code 0xe00002bc and I have no way to debug it. Has anyone deal with something like this? panic(cpu 5 caller 0xfffffe002fd92b7c): ApplePPM: virtual IOReturn ApplePPMCPMS::callPlatformFunction(const OSSymbol *, bool, void *, void *, void *, void *):2003 ApplePPMCPMS: Could not register client id 5. Error code 0xe00002bcn @ApplePPMCPMS.cpp:2003 Debugger message: panic Memory ID: 0x6 OS release type: User OS version: 22G90 Kernel version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 Fileset Kernelcache UUID: 593DE91B6B9F1B49F8178C99AC56A8C2 Kernel UUID: CE831117-201E-35F6-A293-FCC0F02097A3 Boot session UUID: EB9D
0
0
1.3k
Apr ’24
TabView's page style is broken on iOS 17.4
I have an infinite week scroller implemented using a TabView's page styling. basically when you scroll to the next week, it pre-loads the week after so that you can scroll infinitely. Since iOS 17.4, it seems to partially scroll two pages ahead. Scrolling backwards works fine. I made a radar: FB13718482 Here is a simplified implementation that has the issue reproduced. It uses the swift ordered collections library. Video of the issue: https://youtu.be/JW8dHqawURA import Foundation import OrderedCollections import SwiftUI struct ContentView: View { private let calendar: Calendar private let dateFormatter: DateFormatter @State var weeks: OrderedDictionary @State var selectedWeek: WeekView.Week.ID init() { let calendar = Calendar.autoupdatingCurrent self.calendar = calendar let formatter = DateFormatter() formatter.calendar = calendar formatter.dateFormat = MMM d dateFormatter = formatter // Setup initial week let currentDate = Date() let weekIdentifier = Self.weekIde
1
0
543
Apr ’24
Sonoma CPU panic
panic(cpu 1 caller 0xfffffff017a8bf60): x86 CPU CATERR detected Debugger message: panic Memory ID: 0xff OS release type: User OS version: 21P3049 macOS version: 23D60 Kernel version: Darwin Kernel Version 23.3.0: Wed Dec 20 22:31:16 PST 2023; root:xnu-10002.81.5~10/RELEASE_ARM64_T8010 KernelCache UUID: 5055C553638BB2B9A72F9B074650402D Kernel UUID: 98C51133-18A2-37CC-8054-0C2A5A0CC992 Boot session UUID: 10AF6C85-ABD5-4EFC-B894-FCA5526A15B3 iBoot version: iBoot-10151.81.1 secure boot?: YES roots installed: 0 x86 EFI Boot State: 0xd x86 System State: 0x0 x86 Power State: 0x0 x86 Shutdown Cause: 0x5 x86 Previous Power Transitions: 0x10001000100 PCIeUp link state: 0x89473614 macOS kernel slide: 0xa400000 Paniclog version: 14 Kernel slide: 0x0000000011820000 Kernel text base: 0xfffffff018824000 mach_absolute_time: 0x11dabe93a329 Epoch Time: sec usec Boot : 0x65fa28af 0x00067d4f Sleep : 0x660be300 0x0005f658 Wake : 0x660be3c7 0x000e9358 Calendar: 0x660e9064 0x000acc96 Zone info: Zone map: 0xffffffddcf6fc000
1
0
827
Apr ’24
TestFlight build generated using xCode 15.3 crashing on some iPhones(iPhone XR - 14.0.1)
Crash Report: - Incident Identifier: E145FDE5-5D98-4970-9964-AF87D023667A Hardware Model: iPhone11,8 Process: Sumridhi [845] Path: /private/var/containers/Bundle/Application/F9531158-C957-44F7-B6E8-93A3BE46E7EC/Sumridhi.app/Sumridhi Identifier: com.syngenta.retailerapp Version: 26 (1.1.9) AppStoreTools: 15E204 AppVariant: 1:iPhone11,8:14 Beta: YES Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.syngenta.retailerapp [518] Date/Time: 2024-04-01 15:51:32.2302 +0530 Launch Time: 2024-04-01 15:51:31.5328 +0530 OS Version: iPhone OS 14.0.1 (18A393) Release Type: User Baseband Version: 3.00.01 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 2 Thread 2 name: Thread 2 Crashed: 0 libsystem_kernel.dylib 0x00000001d2b7798c __pthread_kill + 8 1 libsystem_pthread.dylib 0x00000001ee19fc74 pthread_kill + 272 (pthread.c:1375) 2 libsystem_c.dylib 0x00000001afd48bb4 abort
1
0
432
Apr ’24
Football League calendar display view
Dear all, I'm quite new to SwiftUI and I'm trying to build my first app. I have a data model file like the one below (I'm just posting a portion of it): import Foundation struct CalendarioPartite: Identifiable, Hashable, Equatable { let id = UUID() let stagione: String let giornata: Int let datapartita: String let squadracasa: String let golsquadracasa: Int let squadratrasferta: String let golsquadratrasferta: Int init(stagione: String, giornata: Int, datapartita: String, squadracasa: String, golsquadracasa: Int, squadratrasferta: String, golsquadratrasferta: Int) { self.stagione = stagione self.giornata = giornata self.datapartita = datapartita self.squadracasa = squadracasa self.golsquadracasa = golsquadracasa self.squadratrasferta = squadratrasferta self.golsquadratrasferta = golsquadratrasferta } static func testCalendario() -> [CalendarioPartite] { [CalendarioPartite(stagione: 2023/2024, giornata: 1, datapartita: 04/09/2023, squadracasa: Castelnovese Castelnuovo, golsquadracasa: 1, squadratrasferta: J
3
0
727
Apr ’24
layoutAttributesForItem(at indexPath:) never gets called on UICollectionViewLayout subclass
Hi! I've got a custom UICollectionViewLayout which has its cells and two supplementary kind of views scattered all over randomly within its bounds. It should be a calendar month view with day of week labels on top, week numbers on the left (supplementary views) and day cells in the middle (items). So far I tracked down that the layoutAttributesForItem(at indexPath:) and layoutAttributesForSupplementaryView(ofKind elementKind:, at indexPath:) are not getting called. Which gives them a reason not to be placed where they should be. layoutAttributesForElements(in rect: ) gets called indeed and the returned value is also OK: override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { super.layoutAttributesForElements(in: rect) var arr = [UICollectionViewLayoutAttributes]() arr.append(contentsOf: AllAttributes.filter({ (Item:UICollectionViewLayoutAttributes) -> Bool in (collectionView!.numberOfSections) > Item.indexPath.section && rect.intersects(Ite
0
0
848
Mar ’24
hyperlinks to external website and trackign request
Hi everybody i'm developing an app that shows events of an estate. i fetch the events from an endpoint and show them in a calendar like UI. The app it's pretty simple, just 2 endpoints and a few filters. We have 6 hyperlinks some pointing to the institutional website, some others to a platform my customer use to allow users to book rooms from his estate. The app does not collect any kind of cookies, there's no login or anything like that BUT a few version ago the app store connect blocked my app due to the absence of the tracking request within the links. the institutional website collect cookies and have his own banner and acceptance flow, i tried to explain that to the review team but they demanded me to add the request, so i did that and the app was accepted. Now i'm being rejected because of the tracking request because: _The app still appears to manipulate users into enabling tracking across different apps and websites. Specifically: The app still requires users to enable tracking in order to ac
0
0
556
Mar ’24
HealthKit - Menstrual cycle start date / how cycles are split?
Hey! TLDR: How Health app knows the new menstruation cycle started? The API Adding .menstrualFlow (HKCategoryValueMenstrualFlow) samples require HKMetadataKeyMenstrualCycleStart: Bool parameter. It's fairly simple for the consecutive days - the first sample includes true, the rest false. The problem What about more complex scenarios like: 3 days of unspecified samples, then 2 days of none samples, and unspecified sample again. Should it be marked as the new cycle start? I don't want to prompt the user to confirm the new menstruation cycle. Observations I noticed Health app performs some logic under the hood. For instance, when I marked 5 days in a row unspecified, then left 6 days in a row empty, then selected unspecified again, I got 2 menstruation cycles (11 days ago and today). But when I changed the number of the days I marked as unspecified before the gap, or the length of the gap, or edited the cycles further in the past, I ended up having just 1 menstruation cycle. I guess Health app takes into conside
0
0
865
Mar ’24
Shortcuts doesn't honor Always Allow with custom AppEntity!
My app has an AppIntent that returns a collection of AppEntity items. Using a shortcut with the repeat with each action to loop the entities, it prompts me multiple times to allow to share the entities (I select Always Allow on the first one, but it keeps asking over and over). All the prompts after the first one, shows an incorrect note saying something like: Previously this shortcut was allowed to share 1 item with … the count of items shared is always wrong, for example, if I initially selected Always Allow for 10 entities on the first prompt, the second says previously 1 item, the third prompt actually has the count right, saying 10 items, and then a fourth prompt (seems to be the last one) says something like 40 items Some more facts: This issue does not happen for example when I fetch entities from a system based intent, like get calendar events. It correctly only prompt for my permission once My app is already on the app store
0
0
673
Feb ’24