Software Development Notes
Home
Swift
Python
About
Software Development Notes
  • Saving a SwiftUI view to Photos

    Mar 6, 2022 · 8 min read · photo shape swiftui  ·
    Share on:
    Saving a SwiftUI view to Photos

    Many shapes and patterns can be created using Path and Canvas in SwiftUI. It would be great to be able to save these as images in the Photo Library. This is possible using UIKit, by first converting the SwiftUI View to UIImage and then saving this image to Photos.

    Read More
  • Better performance with canvas in SwiftUI

    Feb 13, 2022 · 8 min read · canvas shape path swiftui  ·
    Share on:
    Better performance with canvas in SwiftUI

    It is said that use of Canvas to create complex shapes can provide better performance in SwiftUI. This article compares performance of scrolling through multiple instances of the same card pattern created using shape, canvas or image.

    Read More
  • Create a star rating SwiftUI component

    Jan 2, 2022 · 9 min read · star shape path swiftui  ·
    Share on:
    Create a star rating SwiftUI component

    Create an interactive star rating SwiftUI component. This article will use the star cutout shape with rounded corners as well as elements of the custom slider to create a star rating component in SwiftUI.

    Read More
  • Star with rounded corners in SwiftUI

    Dec 12, 2021 · 15 min read · star shape path swiftui  ·
    Share on:
    Star with rounded corners in SwiftUI

    The Star shape used in the Star cutout has sharp corners. This article shows how to modify the shape to create stars with rounded corners. The radius of the corner can be set as a parameter to specify the rounding of the outer and inner corners of the star.

    Read More
  • Create a Star cutout shape in SwiftUI

    Dec 5, 2021 · 14 min read · shape star path swiftui  ·
    Share on:
    Create a Star cutout shape in SwiftUI

    Path can be used in SwiftUI to create practically any shape. I found creating a cutout shape difficult until I found that FillStyle can be used with the even-odd rule. This article shows how to create a shape outline where the outside can be colored and the center kept transparent to allow other content to show …

    Read More

Eric Callanan

Lifelong learner, Software Engineering Manager, Passionate, Curious
Read More

Recent Posts

  • Can ChatGPT create an iOS app in SwiftUI - part 1
  • How to cancel a background task in Swift
  • Use async let to run background tasks in parallel in Swift
  • ArraySlice with range operator and Prefix in Swift
  • Add horizontal scroll to charts with SwiftUI Charts in iOS 16
  • NavigationSplitView with Employee and Department models
  • Define colors with Hue, Saturation and Brightness rather than Red, Green and Blue properties
  • Display top section of Bar Charts with Swift Charts

Tags

SWIFTUI 69 PYTHON 28 SWIFT 13 PANDAS 12 PATH 12 BAR-CHART 10 MVVM 8 MATPLOTLIB 7 PLOTLY 7 ANIMATION 6 CANVAS 6 CHART 6 COVID-19 5 SHAPE 5
All Tags
2D2 3D2 ACTIVITY-RING1 ADDCURVE1 AI1 ALGORITHM1 ANGULARGRADIENT1 ANIMATABLEDATA4 ANIMATION6 AREA-CHART1 ARRAY1 ARRAYSLICE1 ASYNC3 ASYNC-LET1 AWAIT3 AXIS2 BAR-CHART10 BUTTON1 BUTTONSTYLE1 CANCEL1 CANVAS6 CARD1 CHART6 CHATGPT1 CIRCLE1 COLOR1 COMPACTMAP1 CONCAT1 COVID2 COVID-195 CROSS-PRODUCT1 DATAFRAME3 DEPENDENCY-INJECTION1 DI1 DICTIONARY1 DIVISION1 DOT-PRODUCT1 ENUMERATE1 FIBONACCI1 FILE1 FILTER1 FLATMAP1 FLIP1 FLOOR1 FOREACH1 FORM1 GEOMETRYREADER1 GEOPANDAS1 GEOPLOT1 HSTACK1 ILOC1 IMAGE2 INDEX1 IPYWIDGETS1 ITERATE1 JSON2 JSONDECODER1 LINE-CHART4 LIST1 LOC1 LOOP1 MACOS1 MAP1 MAPVALUES1 MATHPLOTLIB4 MATPLOTLIB7 MATTHEW1 MINIMAX3 MODAL1 MONTY-HALL3 MVVM8 NAVIGATION2 NAVIGATIONSPLITVIEW1 NSSAVEPANEL1 PALETTE1 PANDAS12 PATH12 PERFORMANCE2 PHOTO1 PIE-CHART1 PLOTLY7 POLYGON1 PREFIX1 PROBABILITY3 PROGRESS1 PROGRESSVIEW1 PUZZLE1 PYTHON28 QR-CODE1 RECURSION1 REDUCE1 ROMAN-NUMERALS1 SCROLL1 SHADING1 SHAPE5 SLIDER2 SPEED1 STAR3 STYLE1 SWIFT13 SWIFTLINT1 SWIFTUI69 TABULAR-DATA1 TABVIEW1 TASK3 TDD4 TEXT2 TIC-TAC-TOE5 TIMELINEVIEW4 TIMING1 UI-TESTING1 UNIT-TEST1 UNIT-TESTING1 USERDEFAULTS1 VECTOR4 VECTORARITHMETIC4 VSTACK1 WHEEL1 WHERE1 ZIP1 ZSTACK1
[A~Z][0~9]