Skip to content

Commit

Permalink
fixed sizes in smaller devices
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-munhoz committed May 15, 2024
1 parent ad366be commit 1ded598
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 57 deletions.
8 changes: 4 additions & 4 deletions mini1.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"mini1/Preview Content\"";
DEVELOPMENT_TEAM = 7U55BCTM6U;
ENABLE_PREVIEWS = YES;
Expand All @@ -394,7 +394,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = br.com.zhorse.mini1;
PRODUCT_BUNDLE_IDENTIFIER = dev.mnhz.dareu;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand All @@ -413,7 +413,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"mini1/Preview Content\"";
DEVELOPMENT_TEAM = 7U55BCTM6U;
ENABLE_PREVIEWS = YES;
Expand All @@ -431,7 +431,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = br.com.zhorse.mini1;
PRODUCT_BUNDLE_IDENTIFIER = dev.mnhz.dareu;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand Down
2 changes: 1 addition & 1 deletion mini1/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "icon.png",
"filename" : "icon.jpg",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed mini1/Assets.xcassets/AppIcon.appiconset/icon.png
Binary file not shown.
3 changes: 3 additions & 0 deletions mini1/View/AddChallengeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ struct AddChallengeView2: View {
.font(.system(size: 34))
.fontDesign(.monospaced)
.fontWeight(.bold)
.minimumScaleFactor(0.5)

VStack(alignment: .leading) {
HStack {
Expand All @@ -49,6 +50,7 @@ struct AddChallengeView2: View {
.font(.system(size: 17))
.padding(.leading, 16)
}
.minimumScaleFactor(0.5)

HStack {
Text("Categoria")
Expand All @@ -68,6 +70,7 @@ struct AddChallengeView2: View {
}
}
}
.minimumScaleFactor(0.5)
}

// .onChange(of: focusedField, perform: { newValue in
Expand Down
2 changes: 1 addition & 1 deletion mini1/View/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ struct ContentView: View {
setChangeDaySubscription()
}

.padding(.horizontal, 24)
.padding(.all, 24)
}
.navigationBarBackButtonHidden()
}
Expand Down
11 changes: 8 additions & 3 deletions mini1/View/OnboardingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ struct OnboardingView: View {
.frame(maxWidth: .infinity)

Image("LogoOnboarding3")
.resizable()
.frame(idealWidth: UIScreen.main.bounds.width, minHeight: 160)
.aspectRatio(contentMode: .fit)
.padding(.top, 10)


Expand Down Expand Up @@ -69,7 +72,9 @@ struct OnboardingView: View {
.frame(height: 44)
.padding(.leading, 16)
.overlay(RoundedRectangle(cornerRadius: 8).stroke(Color("AppGray02")))
.padding(.bottom, 94)

Spacer()
.frame(maxHeight: .infinity)

NavigationLink(destination:
OnboardingView2(userData: userData) {
Expand Down Expand Up @@ -105,8 +110,8 @@ struct OnboardingView: View {
}

}
.padding(.horizontal, 24)
.frame(maxHeight: .infinity, alignment: .top)
.padding([.horizontal, .bottom], 32)
.frame(height: UIScreen.main.bounds.height, alignment: .top)
.background(Color("AppGray03"))
.navigationBarBackButtonHidden()
}
Expand Down
60 changes: 12 additions & 48 deletions mini1/View/OnboardingView3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ struct OnboardingView3: View {
.frame(maxWidth: .infinity)

Image("Logo")
.resizable()
.scaledToFit()
.frame(minHeight: 200)
.padding(.top, 10)


Spacer()
.frame(minHeight: 20)

Text("Bem-vindo")
.fontDesign(.monospaced)
Expand All @@ -42,10 +47,6 @@ struct OnboardingView3: View {
.foregroundColor(Color("AppBlack"))
.frame(maxWidth: .infinity, alignment: .leading)

// Text("Compartilhe desafios com os seus amigos!")
// .fixedSize(horizontal: false, vertical: true)
// .frame(maxWidth: .infinity, alignment: .leading)
// .padding(.bottom, 14)
HStack{

Circle()
Expand Down Expand Up @@ -74,6 +75,7 @@ struct OnboardingView3: View {
}
}
}
.minimumScaleFactor(0.5)

HStack{

Expand Down Expand Up @@ -107,6 +109,7 @@ struct OnboardingView3: View {
.foregroundColor(Color("AppBlack"))
}
}
.minimumScaleFactor(0.5)

HStack{

Expand Down Expand Up @@ -136,52 +139,13 @@ struct OnboardingView3: View {
}
}
}
.minimumScaleFactor(0.5)

// TextField("Nome", text: $userData.player1Name)
// .font(.system(size: 17))
// .frame(height: 44)
// .padding(.leading, 16)
// .overlay(RoundedRectangle(cornerRadius: 8).stroke(Color("AppGray02")))
// .padding(.bottom, 10)
//
// Text("Quem você vai desafiar?")
// .font(.system(.footnote, weight: .regular))
// .foregroundColor(Color("AppGray02"))
// .frame(maxWidth: .infinity, alignment: .leading)
//
// TextField("Desafiante", text: $userData.player2Name)
// .font(.system(size: 17))
// .frame(height: 44)
// .padding(.leading, 14)
// .overlay(RoundedRectangle(cornerRadius: 8).stroke(Color("AppGray02")))
// .padding(.bottom, 46)

HStack {
Rectangle()
.frame(height: 60)
.foregroundColor(.clear)
// .padding(.bottom, 126)
}
Spacer()
.frame(minHeight: 20)

NavigationLink(destination:
OnboardingView(userData: userData)) {
// HStack {
// Text("pular")
// .foregroundColor(Color("AppBlack"))
// .font(.callout)
// }
// .frame(maxWidth: .infinity)
// .frame(height: 50)
// .background(Color("AppGray03"))
// .cornerRadius(10)
// .overlay(RoundedRectangle(cornerRadius: 10)
// .strokeBorder(Color("AppPink"), lineWidth: 1))
// .padding(.bottom, 2)
// }
//
// NavigationLink(destination: OnboardingView2(userData: userData) {
// userData.didShowOnboarding = true
// }) {
HStack {
Text("próximo")
.foregroundColor(.white)
Expand All @@ -195,7 +159,7 @@ struct OnboardingView3: View {
}

}
.padding(.horizontal, 24)
.padding([.horizontal, .bottom], 24)
.frame(maxHeight: .infinity, alignment: .top)
.background(Color("AppGray03"))
}
Expand Down

0 comments on commit 1ded598

Please sign in to comment.