Search results for

calendar

1,863 results found

Post

Replies

Boosts

Views

Activity

Declarative Management App Events Broken during Bulk App Distribution
Hi Apple community, We encountering an issue with Declarative Management app events when attempting bulk app distribution through our Mobile Device Management (MDM) solution. Description of the Issue: During bulk app distribution, the expected app events defined in the Declarative Management framework are not functioning as intended. While individual app deployments work fine and trigger the desired events, the problem arises specifically when distributing apps in the bulk of more than 20 apps. My Status-Subscription Configuration, { Type: com.apple.configuration.management.status-subscriptions, Identifier: DEFAULT_STATUS_CONFIG_0, ServerToken: 2, Payload: { StatusItems: [ { Name: account.list.caldav }, { Name: account.list.carddav }, { Name: account.list.exchange }, { Name: account.list.google }, { Name: account.list.ldap }, { Name: account.list.mail.incoming }, { Name: account.list.mail.outgoing }, { Name: account.list.subscribed-calendar }, { Name: device.identifier.serial-number }, { Name: device
1
0
1.1k
May ’23
"Check Availability" button disappears in CalDAV clients
Hi, I'm using a CalDAV server, which supports scheduling described in rfc 6638. When I connect to this server from the desktop macOS calendar client (or any other Apple calendar client) everything works fine, however I am not able to see attendees availability when I want to invite attendees. The Check Availability button does not appear. However when I connect to another server (Google calendar) and want to invite attendees Check availability is there. support.apple.com says that You only see Check Availability if your event is on a calendar service that tracks availability, such as CalDAV. My server is a CalDAV server, which supports scheduling, but still I can not see Check Availability. Is this feature available for all CalDAV servers? Thank you
1
0
898
May ’23
Custom presentation container for UIDatePicker.inline triggered by UIDatePicker.compact
I prototyped using the UIDatePicker (in UIKit) for a designer. Out of the box, it works well without a lot of code: The UI/UX designer was wondering if we could mimic how Apple's Calendar app displays the calendars: Where the Inline calendar appears to expand into a cell filling the bounds. I don't see how to control the frame or how the Calendar can be told where it is displayed? Can this be done? (iOS 15+) Thanks, Scott
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
831
May ’23
Reply to Animate transition between views of TabView in SwiftUI
Check out the tab views used in Apples apps: Podcast, Music, Files... Switching between tabs is always instantaneous, by design. Personally I don't think a transition animation between the tabs would add any benefit. It could even get annoying for a user. If you really want to trigger some animation, you could use the onAppear of each tab to build some illusion... but this would mean that your views (within the TabView) would really need to know what view is being drawn left/right of it. I think you will end up writing your own version of TabView, not a good idea. See also the HIG to learn why and when to use tab bars (https://developer.apple.com/design/human-interface-guidelines/tab-bars) in iOS. But if you really need an animation... there is a possible way using the TabView in .page mode. The TabView will take care of the animation and will allow swiping between the screens, but you will have to add the bottom bar with all the buttons to switch between the pages. See the example below. struct ContentView:
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’23
Strange problem for widgets on iOS 16.1 - Cannot debug widget extension in Xcode 14.1
Since I upgraded my phone to iOS16.1 I notice that my widget app doesn't refresh timeline as expected. Then I notice that other apps are having this problem as well. As far as I know from my research, iOS 16.1 has a bug regarding widget accessing calendar database. Then I continue my work on Xcode and also found that I cannot debug widget extension timeline on a simulator. If I run widget extension on a simulator with iOS16.0, it runs just fine and I can see all the printouts. If I run widget extension on a simulator with iOS16.1, it doesn't give a printouts at all. And it shows 'Waiting to Attach' Has anyone experience this?
6
0
4k
May ’23
healthkit restingHeartRate simulator
I try to get data of the restingHeartRate via HKStatisticsCollectionQuery. The simulator doesnt seems to have any records. I can retrieve active heart rate data, and I collected those via a HKWorkoutSession. I set the authorization: ` let readDataTypes: Set = [ HKObjectType.quantityType(forIdentifier: HKQuantityTypeIdentifier.heartRate)!, HKObjectType.quantityType(forIdentifier: HKQuantityTypeIdentifier.restingHeartRate)!, HKObjectType.characteristicType(forIdentifier: HKCharacteristicTypeIdentifier.biologicalSex)!, HKObjectType.characteristicType(forIdentifier: HKCharacteristicTypeIdentifier.dateOfBirth)!, HKObjectType.quantityType(forIdentifier: HKQuantityTypeIdentifier.stepCount)!, ]` The code will retrieve data if I change .restingHeartRate to .heartRate let calendar = Calendar.current let beatsPerMinuteUnit = HKUnit.count().unitDivided(by: HKUnit.minute()) let restingHeartRateType = HKQuantityType.quantityType(forIdentifier: .restingHeartRate)! let endDate = Date() let startDate = calendar.date(
2
0
430
May ’23
Reply to DateFormatter, fixed-format dates and iOS Simulator
The short answer here is that there is no safe way to use DateFormatter with a fixed dateFormat string without pinning the locale to en_US_POSIX. You can spend a bunch of time trying to understand the intricacies of how DateFormatter behaves but what does that buy you? The are two possible conclusions: You are able to find a specific set of parameters that seem to work today. You aren’t. The second conclusion isn’t a problem. You’ll go straight to en_US_POSIX and all will be well [1]. The problem is with the first conclusion. You might be tempted to use those parameters in production code but, if you do that, you’re exposing yourself to future binary compatibility problems. For example, while the en_GB locale currently implies the Gregorian calendar, that could change in the future [2]. If that happens, your code will start reporting dates that are off by roughly 500 years. And while this is not a very realistic possibility, weird stuff like this happens all the time [3] and the only way to protect y
Topic: App & System Services SubTopic: General Tags:
May ’23
Reply to Since ios 16 Calendar App is getting google shared calendar notifications non stop
I too am afflicted by this issue that was introduced in iOS 16 . It was not an issue in any operating systems prior. I’ve tried literally every setting Apple has provided and nothing works. I hoped since iOS 16.0 that one of the many eventual version updates would fix this but now we’re on iOS 16.4.1 with zero attention to this massive issue. I’ve turned off the iOS Calendar App toggle for ‘Event Alerts’ & ‘Events Affect Availability’ for every shared Google Calendar I’m subscribed to. And after a minute the iOS turns them all right back on again without any word to me that my settings are being ignored and overwritten. My phone’s battery is now suffering because of this. Many times per day my iPhone will start vibrating with notifications that don’t even pertain to me and it will vibrate for minutes on end. There was a time that it vibrated with Calendar notifications for a hour… using up 25% of my battery. My wife thinks I’m having an affair with another woman because my iPhon
Topic: App & System Services SubTopic: General Tags:
Apr ’23
Reply to DateFormatter doesn't work on certain device
use the newer ISO8601DateFormatter While ISO8601DateFormatter is fab, I always find myself running into problems like the one here, where it’s very slightly out of alignment with the requirements. Maybe that old tech note could use an update to mention ISO8601DateFormatter? QA1480 is in the documentation archive and so I can’t directly update it. Note that the key points from that doc have made it into the modern docs but I like linking to QA1480 because the Buddhist calendar example is a strong motivator. I could replace QA1480 wholesale but I don’t think that’s the right option. After spending years trying to document our way out of this problem my conclusion is that it simply won’t work. The dateFormat property is such an ‘obviously correct’ approach that folks never actually read the docs about it. IMO the path forward here is to deprecate dateFormat (r. 33988168) and replace it with localizedDateFormat and fixedDateFormat, where setting the latter forces the locale. However, that’s just my opini
Topic: App & System Services SubTopic: General Tags:
Apr ’23
Reply to Binary operator '<' cannot be applied to two 'Date?' operands
I can't find out how to show a date picker that lets the user select the date and time. You need to be careful here. Our pickers traditionally work in terms of a Date value but that doesn’t necessarily mean that you should use a Date value in your model. For example, if you store a user’s birthday, you shouldn’t store it as a Date but rather as a DateComponents. That’s because a birthday isn’t an absolute fixed point in time, but rather a date whose time varies based on the context. Given this mismatch, you ofter have to convert between date components and a Date. Do that using Calendar. On the way in, test the the hour component to midday so that you don’t hit this issue touched on in Parsing Dates Without Times. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’23