GeometryReader in SwiftUI 2.0 (2020) - How does it work? Why do we need it?

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ต.ค. 2024
  • In this video we will have a look into the commonly used GeometryReader in SwiftUI. Its core functionality is very simple but it is still very powerful. We will cover what it does and why it is so useful.

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

  • @johnr.5475
    @johnr.5475 3 ปีที่แล้ว

    This is excellent. The best explanation I've found by far. Thanks very much.

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

    Thanks man very clear explanation 😊 I subscribed.

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

    Thank You. Great explanation 😊

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

    This is really helpful. Thank you!

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

    With geometry reader you can create adaptive UI design in swiftUI.

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

    Really good Explained. Can you do a video where you show how to create a view that is adaptive to the screen size of the phone?

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

      I can recommend you the videos on the charts or pie chart where I cover these kind of views. Hope that helps :)

  • @Денис-ж3ф5р
    @Денис-ж3ф5р 3 ปีที่แล้ว

    method fontSize doesn't seem to exist in SwiftUI.

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

      You can use .font(Font.system(size: 15)

    • @Денис-ж3ф5р
      @Денис-ж3ф5р 3 ปีที่แล้ว

      @@sathriyansam727 yeah I know that was a correction of the author if I remember correctly.

    • @Денис-ж3ф5р
      @Денис-ж3ф5р 3 ปีที่แล้ว

      @@sathriyansam727 anyway thanks