Category: software-development

Software development is the process of conceiving, specifying, designing, programming, documenting, testing, and bug fixing involved in creating and maintaining applications, frameworks, or other software components. Software development involves writing and maintaining the source code, but in a broader sense, it includes all processes from the conception of the desired software through to the final manifestation of the software, typically in a planned and structured process. Software development also includes research, new development, prototyping, modification, reuse, re-engineering, maintenance, or any other activities that result in software products.

  • Complete Login App in SwiftUI

    Complete Login App in SwiftUI

    This project follows the Swift MVVM design pattern. It also includes API examples and industry-standard project structure.

    It requires a Laravel project to run in the background. The Laravel project is very simple it requires only a few simple steps.

    Clone the Laravel project

    Download the source code

    Spread the love
  • macOS app basic entitlements file

    macOS app basic entitlements file

    Recently, I have submitted a macOS app on the app store where I used this entitlements file. This uses sandbox, allowing the app to call API to a remote server and select files from the user computer.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>com.apple.security.app-sandbox</key>
    	<true/>
    	<key>com.apple.security.files.user-selected.read-only</key>
    	<true/>
    	<key>com.apple.security.network.client</key>
    	<true/>
    	<key>com.apple.security.personal-information.photos-library</key>
    	<false/>
    </dict>
    </plist>
    
    Spread the love
  • SwiftUI combine rectangle and triangle in shape

    SwiftUI combine rectangle and triangle in shape

    SwiftUI combine rectangle and triangle in shape

    Making custom shape is not hard in SwiftUI by implementing func path(in rect: CGRect) -> Path. You just have to draw points in your desired location in 2D coordinate space by path.move() and path.addLine() func, a line will be drawn automatically.

    struct MomentumArrow: Shape {
        
        func path(in rect: CGRect) -> Path {
            var path = Path()
            
            let squareHeight = rect.height * 0.65
            
            // Rect
            path.move(to: CGPoint(x: 0, y: 0))
            path.addLine(to: CGPoint(x: 0, y: squareHeight))
            path.addLine(to: CGPoint(x: rect.width, y: squareHeight))
            path.addLine(to: CGPoint(x: rect.width, y: 0))
            path.addLine(to: CGPoint(x: 0, y: 0))
            
            // Triangle
            path.move(to: CGPoint(x: 0, y: squareHeight))
            path.addLine(to: CGPoint(x: rect.midX, y: rect.height))
            path.addLine(to: CGPoint(x: rect.width, y: squareHeight))
        
            return path
        }
        
    }
    Spread the love