This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum LaunchArguments { | |
static let isRunningUITests = "isRunningUITests" | |
static let noAnimations = "NoAnimations" | |
static let standardForUAT = [noAnimations, isRunningUITests] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import SwiftUI | |
struct View1: View { | |
var body: some View { | |
ZStack { | |
Color.red | |
Text("View - 1") | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// SwiftUI-UITesting-Medium | |
// | |
// Created by Dheeru Neelam on 9/16/21. | |
// | |
import SwiftUI | |
struct ContentView: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
@State private var shouldShowAlert1 = false | |
var body: some View { | |
VStack { | |
IndependentView() | |
Button("Tap here to present Alert - 1") { | |
shouldShowAlert1 = true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
@State private var shouldShowAlert1 = false | |
@State private var shouldShowAlert2 = false | |
@State private var shouldShowAlert3 = false | |
var body: some View { | |
VStack { | |
Button("Tap here to present Alert - 1") { | |
shouldShowAlert1 = true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
var body: some View { | |
VStack { | |
Text("Text 1 ") + Text("Text 2").font(.title) + Text("Text 3").bold() | |
} | |
} | |
} | |
struct ContentView_Previews: PreviewProvider { | |
static var previews: some View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
var body: some View { | |
List { | |
Group { | |
Text("Hello, world!") | |
Text("Hello, world!") | |
Text("Hello, world!") | |
Text("Hello, world!") | |
Text("Hello, world!") | |
Text("Hello, world!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
var body: some View { | |
VStack { | |
Text("Text 1 ") | |
.modifier(LargeTitle()) | |
} | |
} | |
} | |
struct ContentView_Previews: PreviewProvider { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension TimeZone { | |
public static let localTimeZone: TimeZone = TimeZone(identifier: "Asia/Calcutta")! | |
} | |
extension Date { | |
struct _Formatter { | |
static let base: DateFormatter = { | |
let formatter = DateFormatter() | |
formatter.dateStyle = DateFormatter.Style.long | |
formatter.timeZone = TimeZone.localTimeZone |
NewerOlder