Skip to content

Commit eff56d4

Browse files
author
hadiuzzaman
committed
refactor: change style
1 parent c015e92 commit eff56d4

File tree

6 files changed

+53
-27
lines changed

6 files changed

+53
-27
lines changed

Example/Example.xcodeproj/project.pbxproj

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 60;
6+
objectVersion = 56;
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
028CCC702C8B606F003AFAFF /* ScrollableTabView in Frameworks */ = {isa = PBXBuildFile; productRef = 028CCC6F2C8B606F003AFAFF /* ScrollableTabView */; };
1011
83AFFB882C7888C4007E10D7 /* ExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83AFFB872C7888C4007E10D7 /* ExampleApp.swift */; };
1112
83AFFB8A2C7888C4007E10D7 /* Tab1.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83AFFB892C7888C4007E10D7 /* Tab1.swift */; };
1213
83AFFB8C2C7888C5007E10D7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 83AFFB8B2C7888C5007E10D7 /* Assets.xcassets */; };
1314
83AFFB8F2C7888C5007E10D7 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 83AFFB8E2C7888C5007E10D7 /* Preview Assets.xcassets */; };
14-
83AFFB9C2C788EB6007E10D7 /* ScrollableTabUI in Frameworks */ = {isa = PBXBuildFile; productRef = 83AFFB9B2C788EB6007E10D7 /* ScrollableTabUI */; };
1515
83AFFB9E2C7891CF007E10D7 /* Tab2.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83AFFB9D2C7891CF007E10D7 /* Tab2.swift */; };
1616
83AFFBA02C789282007E10D7 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83AFFB9F2C789282007E10D7 /* ContentView.swift */; };
1717
83AFFBA22C789321007E10D7 /* Tab3.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83AFFBA12C789321007E10D7 /* Tab3.swift */; };
@@ -35,13 +35,24 @@
3535
isa = PBXFrameworksBuildPhase;
3636
buildActionMask = 2147483647;
3737
files = (
38-
83AFFB9C2C788EB6007E10D7 /* ScrollableTabUI in Frameworks */,
38+
028CCC702C8B606F003AFAFF /* ScrollableTabView in Frameworks */,
3939
);
4040
runOnlyForDeploymentPostprocessing = 0;
4141
};
4242
/* End PBXFrameworksBuildPhase section */
4343

4444
/* Begin PBXGroup section */
45+
028CCC712C8B60DD003AFAFF /* Views */ = {
46+
isa = PBXGroup;
47+
children = (
48+
83AFFBA32C78AB45007E10D7 /* AppBar.swift */,
49+
83AFFB892C7888C4007E10D7 /* Tab1.swift */,
50+
83AFFB9D2C7891CF007E10D7 /* Tab2.swift */,
51+
83AFFBA12C789321007E10D7 /* Tab3.swift */,
52+
);
53+
path = Views;
54+
sourceTree = "<group>";
55+
};
4556
83AFFB7B2C7888C4007E10D7 = {
4657
isa = PBXGroup;
4758
children = (
@@ -61,12 +72,9 @@
6172
83AFFB862C7888C4007E10D7 /* Example */ = {
6273
isa = PBXGroup;
6374
children = (
75+
028CCC712C8B60DD003AFAFF /* Views */,
6476
83AFFB872C7888C4007E10D7 /* ExampleApp.swift */,
6577
83AFFB9F2C789282007E10D7 /* ContentView.swift */,
66-
83AFFB9D2C7891CF007E10D7 /* Tab2.swift */,
67-
83AFFB892C7888C4007E10D7 /* Tab1.swift */,
68-
83AFFBA32C78AB45007E10D7 /* AppBar.swift */,
69-
83AFFBA12C789321007E10D7 /* Tab3.swift */,
7078
83AFFB8B2C7888C5007E10D7 /* Assets.xcassets */,
7179
83AFFB8D2C7888C5007E10D7 /* Preview Content */,
7280
);
@@ -98,7 +106,7 @@
98106
);
99107
name = Example;
100108
packageProductDependencies = (
101-
83AFFB9B2C788EB6007E10D7 /* ScrollableTabUI */,
109+
028CCC6F2C8B606F003AFAFF /* ScrollableTabView */,
102110
);
103111
productName = Example;
104112
productReference = 83AFFB842C7888C4007E10D7 /* Example.app */;
@@ -129,7 +137,7 @@
129137
);
130138
mainGroup = 83AFFB7B2C7888C4007E10D7;
131139
packageReferences = (
132-
83AFFB9A2C788EB6007E10D7 /* XCLocalSwiftPackageReference "../ScrollableTabView" */,
140+
028CCC6E2C8B606F003AFAFF /* XCRemoteSwiftPackageReference "swiftui-scrollable-tab-view" */,
133141
);
134142
productRefGroup = 83AFFB852C7888C4007E10D7 /* Products */;
135143
projectDirPath = "";
@@ -367,17 +375,22 @@
367375
};
368376
/* End XCConfigurationList section */
369377

370-
/* Begin XCLocalSwiftPackageReference section */
371-
83AFFB9A2C788EB6007E10D7 /* XCLocalSwiftPackageReference "../ScrollableTabView" */ = {
372-
isa = XCLocalSwiftPackageReference;
373-
relativePath = ../ScrollableTabView;
378+
/* Begin XCRemoteSwiftPackageReference section */
379+
028CCC6E2C8B606F003AFAFF /* XCRemoteSwiftPackageReference "swiftui-scrollable-tab-view" */ = {
380+
isa = XCRemoteSwiftPackageReference;
381+
repositoryURL = "https://github.com/hadiuzzaman524/swiftui-scrollable-tab-view.git";
382+
requirement = {
383+
branch = main;
384+
kind = branch;
385+
};
374386
};
375-
/* End XCLocalSwiftPackageReference section */
387+
/* End XCRemoteSwiftPackageReference section */
376388

377389
/* Begin XCSwiftPackageProductDependency section */
378-
83AFFB9B2C788EB6007E10D7 /* ScrollableTabUI */ = {
390+
028CCC6F2C8B606F003AFAFF /* ScrollableTabView */ = {
379391
isa = XCSwiftPackageProductDependency;
380-
productName = ScrollableTabUI;
392+
package = 028CCC6E2C8B606F003AFAFF /* XCRemoteSwiftPackageReference "swiftui-scrollable-tab-view" */;
393+
productName = ScrollableTabView;
381394
};
382395
/* End XCSwiftPackageProductDependency section */
383396
};

Example/Example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ struct AppBar: View {
1212
if(UIDevice.current.userInterfaceIdiom == .phone){
1313
HStack{
1414
Text("Scrollable Tab View")
15-
.font(.title3)
15+
.font(.title)
1616
Spacer()
17-
Text("").font(.title3)
18-
.fontWeight(.bold)
19-
2017
}.padding(.horizontal,12)
18+
2119

2220
}
2321
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct Tab3: View {
1414
AppBar()
1515
ScrollableTabView(
1616
activeBgColor: Color.red,
17-
inactiveBgColor: Color.cyan,
17+
inactiveBgColor: Color.white,
1818
activeColor: Color.white,
1919
inActiveColor: Color.black,
2020
items: [
@@ -23,37 +23,37 @@ struct Tab3: View {
2323
Text("Test 1")
2424
}.padding(.horizontal, 12)
2525
.padding(.vertical, 4)
26-
, body: Text("Body 1")),
26+
, body: Text("Test 1")),
2727
TabItem(title: VStack{
2828
Image(systemName: "globe")
2929
Text("Test 2")
3030
}.padding(.horizontal, 12)
3131
.padding(.vertical, 4)
32-
, body: Text("Body 2")),
32+
, body: Text("Test 2")),
3333
TabItem(title: VStack{
3434
Image(systemName: "globe")
3535
Text("Test 3")
3636
}.padding(.horizontal, 12)
3737
.padding(.vertical, 4)
38-
, body: Text("Body 3")),
38+
, body: Text("Test 3")),
3939
TabItem(title: VStack{
4040
Image(systemName: "globe")
4141
Text("Test 4")
4242
}.padding(.horizontal, 12)
4343
.padding(.vertical, 4)
44-
, body: Text("Body 4")),
44+
, body: Text("Test 4")),
4545
TabItem(title: VStack{
4646
Image(systemName: "globe")
4747
Text("Test 5")
4848
}.padding(.horizontal, 12)
4949
.padding(.vertical, 4)
50-
, body: Text("Body 5")),
50+
, body: Text("Test 5")),
5151
TabItem(title: VStack{
5252
Image(systemName: "globe")
5353
Text("Test 6")
5454
}.padding(.horizontal, 12)
5555
.padding(.vertical, 4)
56-
, body: Text("Body 6")),
56+
, body: Text("Test 6")),
5757
])
5858
}
5959
}

0 commit comments

Comments
 (0)