u/richardtop1in r/swift • Recommends
Working with DateInterval in Swift - Live Coding (Video)
#swift#dateinterval#calendarkit
1.4K subscribers • 4 videos on Hallway
Intermediate. Assumes working knowledge.
1K views4 years ago2 recommendations
Programming languagesMobile developmentSwiftiOS and SwiftUIRefactoring and legacy code
Richard Topchii refactors CalendarKit live to use the DateInterval API instead of ClosedRange and demonstrates GitHub automation.
In this live coding session we're going to work with the DateInterval Swift struct. We're going to refactor CalendarKit to use the DateInterval API instead of a more generic ClosedRange structure. DateInterval represents the span of time between a specific start date and end date, which is perfect for our use-case. I'll show how to quickly refactor a UI component library as well as demonstrate some of the GitHub automation I'm using to deploy a new version to CocoaPods. CalendarKit github.com/richardtop/CalendarKit CalendarApp github.com/richardtop/CalendarApp Xcode Themes github.com/richardtop/XcodeTheme Git client I use (GitUp): Overview: youtube.com/watch?v=I0KbqUmsVf8 Download github.com/git-up/GitUp/ DateInterval API developer.apple.com/documentation/foundation/dateinterval ClosedRange: developer.apple.com/documentation/swift/closedrange EKEvent developer.apple.com/documentation/eventkit/ekevent swift-corelibs-foundation github.com/apple/swift-corelibs-foundation Subscribe and ring the bell to not miss next tutorials and iOS-related content. Have a suggestion? Leave it in the comments. Follow Richard on social media: Telegram: t.me/richardtop GitHub: github.com/richardtop/ Timecodes: - Intro - Task overview - Updating packages - Local Package Workflow in Swift Package Manager - API, DateInterval - Refactoring CalendarKit - Difference between ClosedRange:Date and DateInterval - Refactoring complex code - Refactoring demo app - Testing & committing changes - Removing ClosedRange:Date - How to code date operations, Apple Corelibs Foundation library - Layout code - Testing & committing changes - Updating documentation - Releasing a new version, automation - Updating CalendarApp to work with the new version - Conclusion, contributing to CalendarKitu/richardtop1in r/swift • Recommends
u/richardtop3in r/swift • Recommends