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

Поділитися
Вставка
  • Опубліковано 30 лис 2022
  • 📲 Download The App "Better Workout"!
    apps.apple.com/at/app/better-...
    🟪 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! ✌🏻😊
  • Наука та технологія

КОМЕНТАРІ • 9

  • @ianisrichardier
    @ianisrichardier 8 місяців тому +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 !

  • @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 ✌🏻😊

  • @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!

  • @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 👊🏻✨