SwiftUI 3.0 Elegant Task App UI With Custom Date Picker - Custom Graphical Date Picker - Xcode 13

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 พ.ย. 2024

ความคิดเห็น • 57

  • @dmitriykhan2011
    @dmitriykhan2011 3 ปีที่แล้ว +3

    Very nice! Swipe gesture in addition to buttons please :)

  • @ГлебТ-б9т
    @ГлебТ-б9т 2 ปีที่แล้ว +2

    Hello Balaji!
    My name is Gleb and I want to thank you for sharing your knowledge. You make videos that are simple and easy to follow.
    I started with zero knowledge of Swift, but by watching your tutorials I managed to learn a lot and build an app for my brother in three months. He is happy and so am I. The app is built on the basis of your custom date picker and other features that you show in your tutorials. Thanks again and keep posting!

    • @Kavsoft
      @Kavsoft  2 ปีที่แล้ว

      ❤️

    • @-.---.--.-.-.
      @-.---.--.-.-. ปีที่แล้ว

      здарова, Глеб!

  • @draytonlav
    @draytonlav 3 ปีที่แล้ว +1

    Love it! Did the whole walkthough. Maybe in the future if there were an explanation on what calendar is and such would be handy! None the less I think this is great!

  • @Totokwa
    @Totokwa 3 ปีที่แล้ว +1

    This is amazing bro. Thank you for this! I've been looking for a tutorial for a Calendar, all i can find is frameworks. Thank you for this!

  • @talldane2538
    @talldane2538 2 ปีที่แล้ว

    Great idea for elegant calendar and some really good pointers for SwiftUI coders. Minor issues: "Remainder' should be 'Reminder' obviously and the current date should only be highlighted if user is in current month. As others have noted, Locale() date could determine day labels, week start date etc. Thanks for an awesome video.

  • @AdailtonSilvaSP
    @AdailtonSilvaSP 9 หลายเดือนก่อน

    Tks for the video!! It helped me a lot on my personal project!!

  • @sam-chahine
    @sam-chahine 2 ปีที่แล้ว +1

    in extraDate(), change the `let date` part to `let date = formatter.string(from: getCurrentMonth())`, instead of `from: currentDate`. If you use currentDate here, onChange, your binding var will change to which ever month the user navigates to, and whichever day the user clicks.

    • @acrawan8182
      @acrawan8182 2 ปีที่แล้ว +3

      That didnt fix it for me either… it still auto selects the same date from every month when I switch

  • @jaylensmith6308
    @jaylensmith6308 2 ปีที่แล้ว

    Kavsoft, the SwiftUI goat

  • @plassonade
    @plassonade 7 วันที่ผ่านมา

    Thank you so much!!!

  • @dev_jeongdaeri
    @dev_jeongdaeri 3 ปีที่แล้ว +1

    Super amazing!!! Always thanks! 😍

  • @REYNALDO6081
    @REYNALDO6081 ปีที่แล้ว

    Love it, is amazing, please build in other video an custom view neomorphist

  • @deucalion3486
    @deucalion3486 3 ปีที่แล้ว +1

    YAAAAAASSS KING KAVSOFT, bless us with ur knowledge

  • @andrejkling3886
    @andrejkling3886 3 ปีที่แล้ว +1

    So... amazing Job

  • @mishapushka708
    @mishapushka708 3 ปีที่แล้ว +2

    Thank you) You are good at it! Great calendar! Tell me how to make the calendar scroll a month ahead or a month back without using the buttons above. Ie to scroll with your hands to the left or to the right)

    • @Who-ps7bc
      @Who-ps7bc 2 ปีที่แล้ว

      TabView + Style = PageTabViewStyle ?

    • @mickele-bu9fp
      @mickele-bu9fp 2 ปีที่แล้ว

      @@Who-ps7bc how does it work? Could you explain how this is done?

    • @mickele-bu9fp
      @mickele-bu9fp 2 ปีที่แล้ว

      Have you found a solution?

  • @nicoleg6723
    @nicoleg6723 2 ปีที่แล้ว +2

    Hello, how would I replace the offset value to something that would be set to specific dates? for example the reminder event "football with harry" is set on the 25th march, rather than having an offset of 2 (2days from the current date) ? as this date constantly moves as the current date moves. Any help here would be appreciated! Thanks

    • @TheFistRZ
      @TheFistRZ 2 ปีที่แล้ว +1

      Did you ever find out how to do this?

  • @명이나물-i6o
    @명이나물-i6o 2 ปีที่แล้ว

    Thanks for inspiring my app 😍😍😍

  • @dhikaaditya1920
    @dhikaaditya1920 ปีที่แล้ว +1

    I have a problem that when I print my selected `Current Date` to the console (let's say I select February 8), the console gives an output date of February 7. is there a solution regarding this?

    • @kadir_alev
      @kadir_alev ปีที่แล้ว

      Same problem

    • @Kavsoft
      @Kavsoft  ปีที่แล้ว

      Test the date with .formatted()!

  • @homerreal
    @homerreal 3 ปีที่แล้ว

    Could you so a Video with deep links? Keep the Great work!

  • @bluer5640
    @bluer5640 ปีที่แล้ว +1

    It crashes when showing Januray 2023, because of index out of range in func extractDate()
    Solution:
    [...]
    var firstWeekday = calendar.component(.weekday, from: days.first?.date ?? Date())
    if firstWeekday == 1 {
    firstWeekday = 8 // Sunday is represented by 1, so we set it to 8 to make it the last day of the week
    }
    for _ in 0..

  • @MrAdityakool
    @MrAdityakool 3 ปีที่แล้ว +1

    How do we get as good as you? Pls guide us

  • @anisagwan1064
    @anisagwan1064 3 ปีที่แล้ว

    Hey, have you checked cred app on iOS? It has one of the elegant onboarding screen at the start, I hope if you could create of video of building such onboarding. Your work is amazing

    • @Kavsoft
      @Kavsoft  3 ปีที่แล้ว +2

      Share any recordings to
      reply@kavsoft.Dev
      I will give it a try✌️✌️✌️

    • @anisagwan1064
      @anisagwan1064 3 ปีที่แล้ว

      Can't wait

  • @victorriurean
    @victorriurean ปีที่แล้ว

    awesome

  • @beautifulvideosforstories
    @beautifulvideosforstories 3 ปีที่แล้ว +4

    How to set Monday for first of week? Please answer!!!

    • @carlflegg
      @carlflegg 2 ปีที่แล้ว +1

      I am not very good at coding but I would assume:
      VStack(spacing: 35) {
      let days: [String] =
      ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]
      Change to:
      VStack(spacing: 35) {
      let days: [String] =
      ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]
      and:
      for _ in 0..

    • @dmitryfeudorov3967
      @dmitryfeudorov3967 2 ปีที่แล้ว

      @@carlflegg It will crash when you go to the month that starts from Sunday

    • @wanjingchen4409
      @wanjingchen4409 2 ปีที่แล้ว

      @@dmitryfeudorov3967 Hi, did you figure it out?

    • @dmitryfeudorov3967
      @dmitryfeudorov3967 2 ปีที่แล้ว +4

      @@wanjingchen4409 Yes, change this: let firstWeekday = calendar.component(.weekday, from: days[6].date)

    • @wanjingchen4409
      @wanjingchen4409 2 ปีที่แล้ว

      @@dmitryfeudorov3967 thank you so much!

  • @گریوانیعلی
    @گریوانیعلی 3 ปีที่แล้ว

    very very nice

  • @skltfz4997
    @skltfz4997 4 หลายเดือนก่อน

    lol, he wrote his own datepicker in 17 mins

  • @judy8821
    @judy8821 3 ปีที่แล้ว

    Amazing

  • @TheUltimateScorpio
    @TheUltimateScorpio 2 ปีที่แล้ว

    I have all of the same code as you but for some reason I can't use Calendar.current

    • @calebnicol8437
      @calebnicol8437 2 ปีที่แล้ว

      Do you have "Calendar" defined anywhere else in your code? That was my issue

  • @musmus1581
    @musmus1581 3 ปีที่แล้ว

    хорошая работа.

  • @seanokana
    @seanokana 5 หลายเดือนก่อน

    someone tell me I can learn this no problem.... I am begging you.

  • @shaunnhenderson6272
    @shaunnhenderson6272 2 ปีที่แล้ว

    I noticed that the "Add Task" and "Add Reminder" buttons don't have any actions assigned to them so they don't do anything. Anyone have the code to complete the Date Picker

    • @mickele-bu9fp
      @mickele-bu9fp 2 ปีที่แล้ว

      Have you found a solution?

    • @shaunnhenderson6272
      @shaunnhenderson6272 2 ปีที่แล้ว

      @@mickele-bu9fp I found a different solution to what I planned on doing.

    • @rrrmmmccc
      @rrrmmmccc 2 ปีที่แล้ว

      @@shaunnhenderson6272 care to share?

  • @J-Life
    @J-Life 2 ปีที่แล้ว

    How can I change the code so the weekdays start on Mon?

    • @Who-ps7bc
      @Who-ps7bc 2 ปีที่แล้ว

      find solution ?

  • @socialmedia1572
    @socialmedia1572 2 ปีที่แล้ว

    I built this and I'm having buildtime issues. I corrected my code but I have 3 issues left in the Swift files to finish the app. Do you have a email so I can screenshot the issue and send you the code. I followed along with tutorial and would like to get this aspect of the app finished.
    It has to do with the CustomDatePicker and the Home page.
    With the CustomDatePicker,
    It says the 'extension Date' declaration is only valid at file scope.
    & 'HStack in the DayView' has error code Type () cannot conform to View
    With Home.swift it says the VStack containing the CustomDatePicker has error code Generic parameter 'Content' could not be inferred.
    Looking forward to your reply.