Advertisement
IbrahimHassan

DynamicSizeTweak

Jan 27th, 2022
960
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     func frame(dynamicWidth: CGFloat? = nil, dynamicHeight: CGFloat? = nil, alignment: Alignment = .center) -> some View {
  2.         frame(
  3.             maxWidth: DynamicSize.getWidth(dynamicWidth ?? 0),
  4.             maxHeight: DynamicSize.getHeight(dynamicHeight ?? 0),
  5.             alignment: alignment)
  6.     }
  7.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement