How To Create A Chart in SwiftUI (And Use It In UIKit)!

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • 📲 Download The App "Better Workout"!
    apps.apple.com...
    🟪 Twitch
    / martinlasek
    📱 Instagram
    / martin_lasek
    🐥 Twitter
    / martinlasek
    📖 Medium
    / martinlasek
    ___
    Master the art of creating beautiful charts in SwiftUI! In this tutorial, I will guide you through the process of building a chart from scratch using the latest features of SwiftUI. With this knowledge, you can create stunning charts for your own iOS apps and projects. Join the ranks of professional iOS developers and learn how to code a chart in SwiftUI today!
    I am using the new Charts library to create a Line Chart but also a Point Chart and an Area Chart to create a very compelling looking chart using all these three together. Let me know if you have any questions! ✌🏻😊

Комментарии • 11

  • @martinlasek
    @martinlasek  Год назад +2

    Let me know if you have any questions regarding the Chart library and I am happy to answer them directly or with a video! Happy Coding ✌🏻😊

    • @timotejmatlak4625
      @timotejmatlak4625 2 месяца назад +1

      Hi I would like to ask you if you've ever encountered an error: Cannot find 'Chart' in scope - after you've imported everything correctly, but I think it's because of that I support devices that are < iOS 16
      Thanks for your answer...

  • @ajlozano87
    @ajlozano87 Год назад +1

    Great video Martin! It helped me a lot. Now I'm trying to change the font size of the label values from Y and X axis but I cannot find the way to do it. Do you know if it is possible? Thanks!

  • @JaimeLesGrillades
    @JaimeLesGrillades 11 месяцев назад +1

    You did a great job thank you so much ! Now I'm going to try to adapt my actual project for it to work with what I've learnt today thanks to you, wish me luck !

  • @FrankKalhoj
    @FrankKalhoj Год назад

    Hi, grate info in video. I still need a way to transfer array holding the data for Chart, from UIKit to SwiftUI. If you could show how this is done. Make the array in UIKit and send it to SwiftUI to be implemented in Chart and shown like you do in your video, in UIKit view.

  • @jacobbrewer67
    @jacobbrewer67 Год назад

    Great video! Im half way through a uikit project. I made a new swift ui file and imported charts. When I typed Chart into the body it said it couldn't be found. Any thoughts?

    • @martinlasek
      @martinlasek  Год назад

      Did you import “SwiftUI” and also imported “Charts” ?

    • @jacobbrewer67
      @jacobbrewer67 Год назад

      @@martinlasek yeah. Actually tried it on a test UIKit project and worked fine. Is there any other setting that could change its behaviour?

    • @jacobbrewer67
      @jacobbrewer67 Год назад +1

      @@martinlasek Exported to a new project and seems to have sorted itself. Can finally crack on with the tutorial 👍

    • @martinlasek
      @martinlasek  Год назад

      @@jacobbrewer67 I’m glad to hear you figured it out 👊🏻✨