Skip to content

Commit

Permalink
Version 2.4 Build 493
Browse files Browse the repository at this point in the history
Minor Changes
  • Loading branch information
omidgolparvar committed Apr 8, 2020
1 parent 6e18fe1 commit 5a8cf00
Show file tree
Hide file tree
Showing 14 changed files with 103 additions and 153 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Pods/
*.keys
Other/Apple/
.DS_Store

5 changes: 3 additions & 2 deletions Vazhegan.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -709,7 +710,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Fabric/run\" 95e542f3124cc844332f7695d52420802a4bfca8 dd893d7ba485a1b545ed5cdebc910c0a704ff392356e587506d206b10e0549a6";
shellScript = "\"${PODS_ROOT}/Fabric/run\" 95e542f3124cc844332f7695d52420802a4bfca8 dd893d7ba485a1b545ed5cdebc910c0a704ff392356e587506d206b10e0549a6\n";
};
1A1017851ED4137C0036FAD3 /* Increment Build */ = {
isa = PBXShellScriptBuildPhase;
Expand All @@ -723,7 +724,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "bundleVersion=$(/usr/libexec/PlistBuddy -c \"Print CFBundleShortVersionString\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\")\nbuildNumber=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\")\n\nbuildNumber=$(($buildNumber + 1))\n\n/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString $bundleVersion\" \"${PROJECT_DIR}/VazheganActionExtension/Info.plist\"\n\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $buildNumber\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $buildNumber\" \"${PROJECT_DIR}/VazheganActionExtension/Info.plist\"\n";
shellScript = "bundleVersion=$(/usr/libexec/PlistBuddy -c \"Print CFBundleShortVersionString\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\")\nbuildNumber=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\")\n\nbuildNumber=$(($buildNumber + 1))\n\n# /usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString $bundleVersion\" \"${PROJECT_DIR}/VazheganActionExtension/Info.plist\"\n\n# /usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $buildNumber\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\"\n# /usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $buildNumber\" \"${PROJECT_DIR}/VazheganActionExtension/Info.plist\"\n";
};
3F7EA787355A929951E595B5 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
Expand Down
Binary file not shown.
3 changes: 0 additions & 3 deletions Vazhegan/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import IDAlert
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

private var isFabricUsageEnabled = true

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
Expand Down Expand Up @@ -118,7 +116,6 @@ extension AppDelegate {
}

private func setupFabric() {
guard isFabricUsageEnabled else { return }
Fabric.with([Crashlytics.self, Answers.self])
}

Expand Down
46 changes: 21 additions & 25 deletions Vazhegan/Controllers/HomeController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ final class HomeController: UIViewController {
@IBOutlet weak var view_Header : UIView!
@IBOutlet weak var view_TextFieldHolder : UIView!
@IBOutlet weak var textField_SearchBox : UITextField!
@IBOutlet weak var view_Line : UIView!
@IBOutlet weak var tableView_Results : UITableView!
@IBOutlet weak var button_ClearTextField : UIButton!
@IBOutlet weak var view_ButtonsHolder : UIView!
Expand All @@ -34,7 +33,6 @@ final class HomeController: UIViewController {

@IBAction func action_TextFieldSearchBox_EditingChanged(_ sender: UITextField) {
let text = textField_SearchBox.text?.id_Trimmed ?? ""
textField_SearchBox.text = text
button_ClearTextField.isHidden = text.isEmpty
}

Expand Down Expand Up @@ -82,6 +80,11 @@ extension HomeController: UITextFieldDelegate {
setupViews_ToolbarVisibility(isVisible: false)
return true
}

func textFieldDidEndEditing(_ textField: UITextField) {
textField.text = textField.text?.id_Trimmed
}

}

extension HomeController: IDStorkyPresenterDelegate {
Expand Down Expand Up @@ -110,12 +113,25 @@ extension HomeController {

private func setupViews() {
button_ClearTextField.isHidden = true
view_TextFieldHolder.id_RoundCorners()

view_TextFieldHolder.layer.cornerRadius = view_TextFieldHolder.frame.height / 2.0
view_TextFieldHolder.layer.shadowColor = UIColor.black.cgColor
view_TextFieldHolder.layer.shadowOffset = .zero
view_TextFieldHolder.layer.shadowRadius = 16.0
view_TextFieldHolder.layer.shadowOpacity = 0.3
view_TextFieldHolder.layer.borderColor = #colorLiteral(red: 1, green: 0.1491314173, blue: 0, alpha: 1)
view_TextFieldHolder.layer.borderWidth = 1

view_Header.backgroundColor = UIColor.white.withAlphaComponent(0.9)

textField_SearchBox.delegate = self

tableView_Results.contentInset.top += 80
tableView_Results.contentInset.bottom += 80

setupViews_VazheganBackgroundView()
setupViews_EntranceView()
setupViews_Toolbar()
//setupViews_ForiOS13()
}

private func setupViews_VazheganBackgroundView() {
Expand Down Expand Up @@ -157,7 +173,7 @@ extension HomeController {
private func setupViews_Toolbar() {
view_ButtonsHolder.layer.cornerRadius = view_ButtonsHolder.frame.height / 2.0
view_ButtonsHolder.layer.shadowColor = UIColor.black.cgColor
view_ButtonsHolder.layer.shadowOffset = CGSize(width: 0, height: -4)
view_ButtonsHolder.layer.shadowOffset = .zero
view_ButtonsHolder.layer.shadowRadius = 16.0
view_ButtonsHolder.layer.shadowOpacity = 0.3
}
Expand Down Expand Up @@ -196,26 +212,6 @@ extension HomeController {
}
}

private func setupViews_ForiOS13() {
guard #available(iOS 13.0, *) else { return }
guard let keyWindow = UIApplication.shared.keyWindow else { return }

keyWindow.isOpaque = false
keyWindow.backgroundColor = .clear

view.isOpaque = false
view.backgroundColor = .clear

let backgroundBlurView = UIVisualEffectView(effect: UIBlurEffect(style: .light))
backgroundBlurView.frame = view.bounds
backgroundBlurView.autoresizingMask = [.flexibleWidth, .flexibleHeight]

tableView_Results.backgroundView?.backgroundColor = .clear

view.addSubview(backgroundBlurView)
view.sendSubviewToBack(backgroundBlurView)
}

private func setupModels() {
self.searcher = Searcher(controller: self, tableView: tableView_Results)
self.searcher!.onTapRow { [weak self] (word) in
Expand Down
4 changes: 1 addition & 3 deletions Vazhegan/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>453</string>
<string>493</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down Expand Up @@ -76,8 +76,6 @@
<string>IRANSansMobile.ttf</string>
<string>ionicons.ttf</string>
</array>
<key>UIApplicationIsOpaque</key>
<false/>
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
Expand Down
Loading

0 comments on commit 5a8cf00

Please sign in to comment.