GithubHelp home page GithubHelp logo

amitshekhariitbhu / ios-viper-architecture Goto Github PK

View Code? Open in Web Editor NEW
707.0 26.0 175.0 2.09 MB

This repository contains a detailed sample app that implements VIPER architecture in iOS using libraries and frameworks like Alamofire, AlamofireImage, PKHUD, CoreData etc.

Home Page: https://amitshekhar.me

License: Apache License 2.0

Swift 98.27% Ruby 1.73%
ios ios-app ios-swift viper-architecture viper alamofire alamofireimage coredata

ios-viper-architecture's Introduction

iOS Viper Architecture: Sample App

This repository contains a detailed sample app that implements VIPER architecture using libraries and frameworks like Alamofire, AlamofireImage, PKHUD, CoreData etc.



VIPER Architecture Blueprint

Blueprint

Project Structure

Structure

Just fork, clone, build, run and learn VIPER architecture for IOS.

git clone https://github.com/amitshekhariitbhu/iOS-Viper-Architecture.git
cd iOS-Viper-Architecture
pod install
open iOS-Viper-Architecture.xcworkspace

License

   Copyright (C) 2022 Amit Shekhar

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Contributing to iOS Viper Architecture

Just make pull request. You are in!

ios-viper-architecture's People

Contributors

amitshekhariitbhu avatar el-hoshino avatar inf926k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-viper-architecture's Issues

App crash when opening

Hi, I found the crash when I build up the project.
It seems a crash when PKHUD library.

System:
cocoapod: 1.3.1
Xcode 9.0, iOS 11.0

2017-09-29 17:14:48.651575+0800 iOS-Viper-Architecture[12446:199585] *** Assertion failure in -[PKHUD.FrameView _addSubview:positioned:relativeTo:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3694.4.18/UIVisualEffectView.m:1464
2017-09-29 17:14:48.659722+0800 iOS-Viper-Architecture[12446:199585] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<PKHUD.PKHUDProgressView: 0x7fc55a0103f0; frame = (0 0; 156 156); clipsToBounds = YES; alpha = 0.85; layer = <CALayer: 0x60c0000302a0>> has been added as a subview to <PKHUD.FrameView: 0x7fc55a00dea0; baseClass = UIVisualEffectView; frame = (0 0; 156 156); clipsToBounds = YES; autoresize = LM+RM+TM+BM; layer = <CALayer: 0x600000028b80>>. Do not add subviews directly to the visual effect view itself, instead add them to the -contentView.'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011400a1cb __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00000001100c7f41 objc_exception_throw + 48
	2   CoreFoundation                      0x000000011400f362 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x000000010fb6c089 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
	4   UIKit                               0x00000001111cb43f -[UIVisualEffectView _addSubview:positioned:relativeTo:] + 379
	5   PKHUD                               0x000000010fa495a6 _T05PKHUD9FrameViewC7contentSo6UIViewCfs + 518
	6   PKHUD                               0x000000010fa5052c _T05PKHUDAAC11contentViewSo6UIViewCfs + 300
	7   PKHUD                               0x000000010fa4b964 _T05PKHUD3HUDC4showyAA14HUDContentTypeO_So6UIViewCSg6onViewtFZ + 484
	8   iOS-Viper-Architecture              0x000000010f401df0 _T022iOS_Viper_Architecture12PostListViewC11showLoadingyyF + 112
	9   iOS-Viper-Architecture              0x000000010f401e24 _T022iOS_Viper_Architecture12PostListViewC11showLoadingyyFTo + 36
	10  iOS-Viper-Architecture              0x000000010f402108 _T022iOS_Viper_Architecture12PostListViewC11showLoadingyyFTD + 40
	11  iOS-Viper-Architecture              0x000000010f4020d9 _T022iOS_Viper_Architecture12PostListViewCAA0deF8ProtocolA2aDP11showLoadingyyFTW + 9
	12  iOS-Viper-Architecture              0x000000010f405c89 _T022iOS_Viper_Architecture17PostListPresenterC11viewDidLoadyyF + 137
	13  iOS-Viper-Architecture              0x000000010f4066e1 _T022iOS_Viper_Architecture17PostListPresenterCAA0deF8ProtocolA2aDP11viewDidLoadyyFTW + 49
	14  iOS-Viper-Architecture              0x000000010f4010aa _T022iOS_Viper_Architecture12PostListViewC11viewDidLoadyyF + 218
	15  iOS-Viper-Architecture              0x000000010f401284 _T022iOS_Viper_Architecture12PostListViewC11viewDidLoadyyFTo + 36
	16  UIKit                               0x0000000110d7bd51 -[UIViewController loadViewIfRequired] + 1235
	17  UIKit                               0x0000000110dc34dc -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 68
	18  UIKit                               0x0000000110dc3818 -[UINavigationController _startTransition:fromViewController:toViewController:] + 153
	19  UIKit                               0x0000000110dc492f -[UINavigationController _startDeferredTransitionIfNeeded:] + 841
	20  UIKit                               0x0000000110dc5b90 -[UINavigationController __viewWillLayoutSubviews] + 115
	21  UIKit                               0x000000011101c2ae -[UILayoutContainerView layoutSubviews] + 231
	22  UIKit                               0x0000000110cac551 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1331
	23  QuartzCore                          0x000000011a4314ba -[CALayer layoutSublayers] + 153
	24  QuartzCore                          0x000000011a4355a9 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 401
	25  QuartzCore                          0x000000011a3be1cd _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 365
	26  QuartzCore                          0x000000011a3e9ae4 _ZN2CA11Transaction6commitEv + 500
	27  UIKit                               0x0000000110bf9706 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 141
	28  CoreFoundation                      0x0000000113fad20c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	29  CoreFoundation                      0x0000000113f91a3b __CFRunLoopDoBlocks + 203
	30  CoreFoundation                      0x0000000113f91214 __CFRunLoopRun + 1300
	31  CoreFoundation                      0x0000000113f90a89 CFRunLoopRunSpecific + 409
	32  GraphicsServices                    0x0000000118ebe9c6 GSEventRunModal + 62
	33  UIKit                               0x0000000110bddd30 UIApplicationMain + 159
	34  iOS-Viper-Architecture              0x000000010f40ce07 main + 55
	35  libdyld.dylib                       0x0000000115110d81 start + 1
	36  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.