Skip to content
Sandesh S. Sardar

Sandesh S. Sardar

iOS (swift) / Web Developer

  • iOS (Swift)
  • SwiftUI
  • Devops
  • Japanese
  • Europe
  • More

    Category: SwiftUI

    Difference between @ObservedObject and @StateObject

    At first both look same. The @StateObject and @ObservedObject property wrapper tell a SwiftUI view to update in response to changes from an observed object (mostly viewmodel). Both… Read more “Difference between @ObservedObject and @StateObject”

    June 2, 2022 by Sandesh S. Sardar

    Multiple gestures recognise at the same time using simultaneousGesture()

    .onTapGesture allows to tap only layer of design but .simultaneousGesture identify and allows touch to multiple layer

    May 23, 2022 by Sandesh S. Sardar

    How to use @State to see changes in same view

    May 15, 2022 by Sandesh S. Sardar

    SwiftUI Coding standards

    SwiftUI coding standards If code is repetitive make subview to reuse code Repetitive code Common code (can provide default value too) Reuse code

    June 14, 2021June 14, 2021 by Sandesh S. Sardar

    GeometryReader

    https://www.hackingwithswift.com/quick-start/swiftui/how-to-provide-relative-sizes-using-geometryreader GeometryReader to the Rescue What the Parent Wants When coding your custom view, you often do not need to worry about surroundings or sizing. For example,… Read more “GeometryReader”

    November 29, 2020November 30, 2020 by Sandesh S. Sardar

    SwiftUI Concepts

    SwiftUI is available from iOS13. What is swift UI? Till now we were using UIKit to make design which is imperative way of doing design. But SwiftUI… Read more “SwiftUI Concepts”

    April 16, 2020June 29, 2021 by Sandesh S. Sardar

    How to pass / communicate data from one view to another using @Binding in SwiftUI?

    Even if we change value any view it will update in for both the view

    April 16, 2020May 23, 2022 by Sandesh S. Sardar

    What is @EnvironmentObject in SwiftUI?

    A dynamic view property that uses a bindable object supplied by an ancestor view to invalidate the current view whenever the bindable object changes.In practice the main… Read more “What is @EnvironmentObject in SwiftUI?”

    April 16, 2020April 16, 2020 by Sandesh S. Sardar

    SwiftUI Design Concepts

    Views: VStack : arrange views vertically HStack : arrange views horizontally ZStack : arrange views one on another Color.purple : will create view of purple color SF… Read more “SwiftUI Design Concepts”

    January 20, 2020April 16, 2020 by Sandesh S. Sardar
    Website Built with WordPress.com.
    • Follow Following
      • Sandesh S. Sardar
      • Already have a WordPress.com account? Log in now.
      • Sandesh S. Sardar
      • Customize
      • Follow Following
      • Sign up
      • Log in
      • Report this content
      • View site in Reader
      • Manage subscriptions
      • Collapse this bar
     

    Loading Comments...