{"id":23659861,"url":"https://github.com/tmukammel/ioskickstart","last_synced_at":"2025-09-01T14:31:42.473Z","repository":{"id":47708193,"uuid":"99851857","full_name":"tmukammel/iOSKickStart","owner":"tmukammel","description":"Set of extended standard features to kickstart any iOS project.","archived":false,"fork":false,"pushed_at":"2021-08-17T08:31:21.000Z","size":161,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-31T18:53:23.141Z","etag":null,"topics":["ios","ios-app","kickstart","project-template","swift5","template"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmukammel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-09T20:52:07.000Z","updated_at":"2021-08-17T08:31:21.000Z","dependencies_parsed_at":"2022-08-21T05:20:15.821Z","dependency_job_id":null,"html_url":"https://github.com/tmukammel/iOSKickStart","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/tmukammel/iOSKickStart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmukammel%2FiOSKickStart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmukammel%2FiOSKickStart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmukammel%2FiOSKickStart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmukammel%2FiOSKickStart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmukammel","download_url":"https://codeload.github.com/tmukammel/iOSKickStart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmukammel%2FiOSKickStart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273139664,"owners_count":25052475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","ios-app","kickstart","project-template","swift5","template"],"created_at":"2024-12-29T02:57:40.923Z","updated_at":"2025-09-01T14:31:42.183Z","avatar_url":"https://github.com/tmukammel.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iOSKickStart\n\nA set of extended UIKit features to kickstart any iOS project.\n\n[![GitHub latest stable releases](https://img.shields.io/github/v/release/tmukammel/iOSKickStart)](https://github.com/tmukammel/iOSKickStart/releases/latest)\n[![GitHub forks](https://img.shields.io/github/forks/tmukammel/iOSKickStart)](https://github.com/tmukammel/iOSKickStart/network/members)\n[![GitHub stars](https://img.shields.io/github/stars/tmukammel/iOSKickStart)](https://github.com/tmukammel/iOSKickStart/stargazers)\n[![GitHub issues](https://img.shields.io/github/issues/tmukammel/iOSKickStart)](https://github.com/tmukammel/iOSKickStart/issues)\n\n[![Version](https://img.shields.io/cocoapods/v/iOSKickStart.svg?style=flat)](http://cocoapods.org/pods/iOSKickStart)\n[![License](https://img.shields.io/cocoapods/l/iOSKickStart.svg?style=flat)](http://cocoapods.org/pods/iOSKickStart)\n[![Platform](https://img.shields.io/cocoapods/p/iOSKickStart.svg?style=flat)](http://cocoapods.org/pods/iOSKickStart)\n\n[![Twitter share](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Ftmukammel%2FiOSKickStart)](http://www.twitter.com/share?url=https://github.com/tmukammel/iOSKickStart)\n\n## Example Project\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## About\n\nA beautiful project template to kick start any iOS project. The target is to avoid recoding for features like UIView rounded rect designables or a simple scrolling form. Please contribute to this project to fill up with a standard set of features frequently needed.\n\n## Features \u0026 Implementations\n\n### 1. Localization\n\n#### **(a)** Set Language\n\n\u003e **(1)** Set and Switch application locale programmetically.\n\n```swift\n// Bundle.setLanguage(language: String!)\nBundle.setLanguage(\"bn\")\n```\n\n\u003e **(2)** Get application locale programmetically.\n\n```swift\n// Bundle.getLanguage()\nlet currentLanguage = Bundle.getLanguage()\n```\n\n\u003e **(3)** Update current view with changed locale.\n\n\u003e \u003e You will have to reload `Main` storyboard\n\n\u003e \u003e or,  \n\u003e \u003e Reload current viewing `ViewController`\n\n```swift\nfunc forceReload() {\n    let storyBoard : UIStoryboard = UIStoryboard(name: \"Main\", bundle:nil)\n    let destVC = storyBoard.instantiateViewController(withIdentifier: \u003c\"ViewControllerIdentifier\"\u003e) as! \u003cViewControllerClass\u003e\n    let navC = self.navigationController;\n    navC?.popToRootViewController(animated: true)\n    navC?.pushViewController(destVC, animated: true)\n}\n```\n\n#### **(b)** Localization from storyboard\n\n\u003e With Localizable.strings (Locale) key sting into interface builder.\n\n\u003e **(1)** UILabel\n\u003e\n\u003e \u003e `.localizedTextKey = \u003clocalizableKey\u003e`\n\n\u003e **(2)** UITextField\n\u003e\n\u003e \u003e `.localizedPlaceholderKey = \u003clocalizableKey\u003e`\n\n\u003e **(3)** UIBUtton\n\u003e\n\u003e \u003e `.localizedTitleKey = \u003clocalizableKey\u003e`\n\n\u003e **(4)** UITabBarItem\n\u003e\n\u003e \u003e `.localizedTitleKey = \u003clocalizableKey\u003e`\n\n\u003e **(5)** UIViewController.title\n\u003e\n\u003e \u003e `.localizedTitleKey = \u003clocalizableKey\u003e`\n\n### 2. User intput form (Scrollview)\n\n#### **(a)** Label bounds.height to font ratio\n\n\u003e `fontToHeightRatio = \u003cfractionLessThanZero\u003e`\n\n#### **(b)** TextField left, right padding\n\n\u003e `textField.leftPadding = \u003cpaddingInPoints\u003e`  \n\u003e `textField.rightPadding = \u003cpaddingInPoints\u003e`\n\n#### **(c)** Keyboard configuration\n\n\u003e Default keyboard config enum in interfacebuilder to choose easily and avoid keyboard config mistakes.\n\n\u003e Configuration options\n\n```swift\nprivate enum TextFieldKeyboardConfig: String {\n    case email\n    case name\n    case password\n    case comment\n}\n```\n\n\u003e To set keyboard configuration\n\u003e\n\u003e \u003e `keyboardConfig = \u003coption\u003e`\n\n#### **(d)** CodeInputTextField Code input\n\n\u003e **(1)** Set length and code placeholder  \n\u003e `codeLengthAndChar = \u003clength,placeholder\u003e`\n\u003e\n\u003e \u003e e.g: `codeLengthAndChar = \"6,●\"`\n\n\u003e **(2)** Implement UITextFieldDelegate\n\n```swift\n// MARK: - UITextFieldDelegate\n\nfunc textFieldDidBeginEditing(_ textField: UITextField) {\n    if let textFld = (textField as? CodeInputTextField) {\n        textFld.observeCodeInputDidBegin()\n    }\n}\n\nfunc textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -\u003e Bool {\n    // Code ...\n\n    if let textFld = (textField as? CodeInputTextField) {\n        return textFld.observeCodeInput(shouldChangeCharactersIn: range, replacementString: string)\n    }\n\n    return true\n}\n```\n\n\u003e \u003e This is how it looks\n\u003e\n\u003e \u003e \u003e \u003cimg src=\"https://dl.dropboxusercontent.com/s/mmk8vppaf8jdp5a/codeTextField.png?dl=0\" /\u003e\n\n#### **(e)** Input form scrollview behavior\n\n\u003e **Step 01**\n\n\u003e To make scrollview to act as an input form  \n\u003e Set `scrollview` user defined runtime attributes\n\n```swift\n// User defined runtime attributes\nactAsInputForm = true\n```\n\n\u003e To dismiss keyboard on tap  \n\u003e Set `scrollview.view` (view under scrollview on wich the form fields resided) user defined runtime attributes\n\n```swift\n// User defined runtime attributes\nendEditingOnTap = true\n```\n\n\u003e **Step 02**\n\n\u003e Send actions to scrollview\n\n```swift\n@IBOutlet weak var scrollView: ScrollView!\n\noverride func viewWillAppear(_ animated: Bool) {\n    super.viewWillAppear(animated)\n\n    scrollView.parentViewControllerWillAppear()\n}\n\noverride func viewWillDisappear(_ animated: Bool) {\n    super.viewWillDisappear(animated)\n\n    scrollView.parentViewControllerWillDisappear()\n}\n\n// MARK: - UITextFieldDelegate\n\nfunc textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -\u003e Bool {\n    scrollView.scrollControlRectToVisible(textField)\n\n    return true\n}\n```\n\n### 2. UINavigationController\n\n#### UINavigationController+Extension\n\nisNavBarHidden IBInspectable.\n\n### 5. Define once use everywhere global constants.\n\n### 1. Navigation: Cross dissolve and reverse push pop\n\n### 2. UIColor init with hex value.\n\n### 3. UIView corner-radius and colored-border IBInspectables.\n\n#### UIView+Extension\n\n\u003e bgColorKey\n\u003e cornerRadius\n\u003e applyStandardCornerRadius\n\u003e makeRoundedCorners\n\u003e borderWidth\n\u003e borderColor\n\u003e endEditingOnTap\n\u003e gradHexColors\n\n### 11. UIBUtton+Extension\n\n\u003e localizedTitleKey  \n\u003e keyNormalTxtColor  \n\u003e keyDisabledTxtColor  \n\u003e UIButton adoptive font size\n\u003e\n\u003e \u003e fontToHeightRatio  \n\u003e \u003e numberOfLines  \n\u003e \u003e adjustFontSize `// adjustsFontSizeToFitWidth`\n\n\u003cimg src=\"https://dl.dropboxusercontent.com/s/cet4cjctq2ba1xa/buttonCustomClass.png?dl=0\" /\u003e \u003cimg src=\"https://dl.dropboxusercontent.com/s/mqpgilyfet1d1ms/adoptiveButtonFont.png?dl=0\" /\u003e\n\nOR\n\n```swift\nbutton.fontToHeightRatio = 0.35\nbutton.numberOfLines = 1\nbutton.adjustFontSize = true\n```\n\n### 13. UILabel bounds.height to font size ratio\n\n\u003cimg src=\"https://dl.dropboxusercontent.com/s/mr4luizt1n4zgxy/labelCustomClass.png?dl=0\" /\u003e \u003cimg src=\"https://dl.dropboxusercontent.com/s/fhpt9tm61enm4et/labelFontToHeightRatio.png?dl=0\" /\u003e\n\nOR\n\n```swift\nlabel.fontToHeightRatio = 0.6\n```\n\n### 14. UIViewController titleImage IBInspectable\n\n\u003cimg src=\"https://dl.dropboxusercontent.com/s/24rs0dnadfzwv6m/ViewControllerTitleImage.png?dl=0\" /\u003e\n\nOR\n\n```swift\nviewController.titleImage = UIImage(named: \"image_name\")\n```\n\n## Limitations\n\n1. You have to extend or use sub classes declared here against Apple's base classes.\n\nThis is just a basic work. Please contribute, expand and Enjoy...\n\n## Installation\n\niOSKickStart is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"iOSKickStart\"\n```\n\n## Author\n\nTwaha Mukammel, t.mukammel@aol.com\n\n## License\n\niOSKickStart is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmukammel%2Fioskickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmukammel%2Fioskickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmukammel%2Fioskickstart/lists"}