Skip to content

Commit

Permalink
added new item to dependencies used, feedback gene added to layout sw…
Browse files Browse the repository at this point in the history
…itch button, and added docWind title to launch page.
  • Loading branch information
s4rv4d committed Aug 17, 2020
1 parent a5293c9 commit b9e0560
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docWind.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = docWind/docWind.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"docWind/Preview Content\"";
DEVELOPMENT_TEAM = N4FDL334LZ;
ENABLE_PREVIEWS = YES;
Expand All @@ -876,7 +876,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = docWind/docWind.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"docWind/Preview Content\"";
DEVELOPMENT_TEAM = N4FDL334LZ;
ENABLE_PREVIEWS = YES;
Expand Down
22 changes: 22 additions & 0 deletions docWind/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,33 @@
<constraint firstAttribute="height" constant="120" id="mQT-Na-NzY"/>
</constraints>
</imageView>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="qfK-sU-GUb">
<rect key="frame" x="126" y="424.5" width="162.5" height="47"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="doc" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7p6-ez-Nbh">
<rect key="frame" x="0.0" y="0.0" width="68.5" height="47"/>
<fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="40"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Wind" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9Sh-AD-6GZ">
<rect key="frame" x="70.5" y="0.0" width="92" height="47"/>
<fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="40"/>
<color key="textColor" systemColor="systemBlueColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="7p6-ez-Nbh" firstAttribute="height" secondItem="9Sh-AD-6GZ" secondAttribute="height" id="M6n-il-kTU"/>
</constraints>
</stackView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="aK8-Vg-Tmk" secondAttribute="bottom" constant="71" id="JUf-NF-Qxd"/>
<constraint firstItem="qfK-sU-GUb" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="RsU-XK-hjF"/>
<constraint firstItem="aK8-Vg-Tmk" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="fuF-jS-lRl"/>
<constraint firstItem="qfK-sU-GUb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="k2Y-eW-fR6"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
Expand Down
2 changes: 1 addition & 1 deletion docWind/Views/Main module/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ struct ContentView: View {
.font(.system(size: 20))
.foregroundColor(.blue)
}, trailing: Button(action: {
FeedbackManager.mediumFeedback()
self.isOffgrid.toggle()
}){
Image(systemName: (self.isOffgrid == false ? "rectangle.3.offgrid" : "rectangle.grid.1x2"))
.font(.system(size: 20))
.foregroundColor(.blue)
})
// .add(self.searchBar)
}
.navigationViewStyle(StackNavigationViewStyle())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ struct DetailedDirecView: View {
.navigationBarTitle(Text(self.item.wrappedItemName), displayMode: .inline)
.navigationViewStyle(StackNavigationViewStyle())
.navigationBarItems(trailing: Button(action: {
FeedbackManager.mediumFeedback()
self.isOffgrid.toggle()
}){
Image(systemName: (self.isOffgrid == false ? "rectangle.3.offgrid" : "rectangle.grid.1x2"))
Expand Down
27 changes: 27 additions & 0 deletions docWind/Views/Settings module/DependecyPageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,33 @@ struct DependecyPageView: View {
}
.settingsBackground()
// --> 1
// --> 2
VStack(alignment: .leading, spacing: 5) {
HStack {
Text("QGrid")
.font(.largeTitle)
.fontWeight(.semibold)
Spacer()
Image(systemName: "exclamationmark.circle")
.foregroundColor(.blue)
}
.padding([.bottom])
Text("by Karol Kulesza")
Text("https://github.com/Q-Mobile/QGrid")
.font(.subheadline)
.foregroundColor(.secondary)
Text("MIT License")
.font(.caption)
.foregroundColor(.secondary)
.padding(.bottom)

}.onTapGesture {
print("hi")
FeedbackManager.mediumFeedback()
SettingsHelper.openUrl(url: "https://github.com/Q-Mobile/QGrid")
}
.settingsBackground()
// --> 2

Spacer()
}.padding(.top)
Expand Down

0 comments on commit b9e0560

Please sign in to comment.