Navigation Bar design guideline
Navigation bars A navigation bar appears at the top of an app screen, enabling navigation through a hierarchy of content.
Read moreNavigation bars A navigation bar appears at the top of an app screen, enabling navigation through a hierarchy of content.
Read moreWhen we need saved small amount of data then we use UserDefaults but when we need large amount of
Read more//directory let path = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].appendingPathComponent(“fileSave”) let data: Data! //for Read Data do{ data = try Data(contentsOf: path)
Read more// // ViewDidLoadView.swift // BeginerLabelAllDemo // // Created by JOYNAL ABEDIN on 22/10/22. // import SwiftUI struct ViewDidLoadView: View {
Read moreUsing .submitLabel() modifier we can change it. .submitLabel(.route) .submitLabel(.next) .submitLabel(.search) also we can fetch the action of return button .onSubmit
Read more// // ListSwipeView.swift // BeginerLabelAllDemo // // Created by JOYNAL ABEDIN on 22/10/22. // import SwiftUI struct ListSwipeView: View {
Read moreUsing .textSelection() modifier we can select text .textSelection(.enabled)
Read more@StateObject -> Use this on creation/init() in parent view @ObservedObject -> Use this for subViews() in parent view
Read more@Environment(\.colorScheme) var colorScheme colorScheme == .light or colorScheme == .dark
Read moreDeclare in properties field top in the View: @Environment(\.presentationMode) var presentationMode finally write the action code: presentationMode.wrappedValue.dismiss()
Read more